Is there any better way to get pid out of it? Specially without using memcpy?
I tried using assingnment operators in enumWindowCallback like lparam = pid or *lparam = *pid and so on but I got different errors with arr kinds of assignments that I came up with. Would like to know what is better way to do this?