I have no idea on setwindowhookex but there are some caveats I've discovered
with dos boxes. The createprocess returns the process info for CMD.EXE
but programs executed by CMD.EXE are different processes. Also, in the
returned processinfo structure, you get process and thread ids not handles. Now
you can get the process handle from processid BUT there is NO way to get a
thread handle from a threadid in a different process. Win32 specifically forbids
this.

----------------------------------------------------------
Phil Scadden, Institute of Geological and Nuclear Sciences
41 Bell Rd South, PO Box 30368, Lower Hutt, New Zealand
Ph +64 4 5704821, fax +64 4 5704603
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"

Reply via email to