Somewhat related, cant get GetWindowThreadProcessId working.. it doesnt touch the pid variable

I pass into it a handle to the window, and it doesnt do anything.. not quite sure what to think, except maybe the hwnd is being cut off ? How long are these or how can I view one (precompiled tool would be good for viewing

)
__________________