RE: Interop.Call("user32.dll","GetActiveWindow") returns 0
No problem. Thanks for pointing out the spelling error (corrected now).
Your previous attempts will have returned the wrong number if you were trying to use the return value of GetWindowThreadProcessId as it returns a handle to the thread that created the window, not the process id.
This post was edited on 12-23-2008 at 06:52 PM by Pinecone.
|