Prev: Screen Capture of Windows Media Player is distorted
Next: Code needed for Parsing PE for Exports
From: Gernot Frisch on 4 Feb 2010 05:59 Hi, Is there any way to get a HANDLE to a new spawned process as the CRT _open() works for console programs? My requirement is _one_ handle for reading and writing. Thank you. -- ------------------------------------ Gernot Frisch http://www.glbasic.com
From: Kerem Gümrükcü on 4 Feb 2010 13:59 Hi Gernot, use CreateToolhelp32Snapshot(...) or use EnumProcesses(...) to get a list of process id's and the use OpenProcess(...), then you have your handle! If you use CreateProcess(...), then you can use the OUT parameter to a PROCESS_INFORMATION structure to get the PID and handle. Regards Kerem -- ----------------------- Beste Gr�sse / Best regards / Votre bien devoue Kerem G�mr�kc� Latest Project: http://www.pro-it-education.de/software/deviceremover Latest Open-Source Projects: http://entwicklung.junetz.de ----------------------- "Gernot Frisch" <me(a)privacy.net> schrieb im Newsbeitrag news:7svnfoFc3uU1(a)mid.individual.net... > Hi, > > Is there any way to get a HANDLE to a new spawned process as the CRT > _open() works for console programs? > > My requirement is _one_ handle for reading and writing. > > Thank you. > > > -- > ------------------------------------ > Gernot Frisch > http://www.glbasic.com >
|
Pages: 1 Prev: Screen Capture of Windows Media Player is distorted Next: Code needed for Parsing PE for Exports |