Posted on 2001-07-11
I tried to use GetActiveWindow to get the handle of the active window, but failed. Can anyone tell me what's wrong with my code?
The above code can only close the program itself, but if the active window is, say, Notepad, it failed to do what I want.
Can anyone help me?
Thanks in advance.