Hi everybody.
I tried your code Tony and it works very well on Windows XP, but are you sure it works on 2K ?
…
ZwQueryInformationProcess( NtCurrentProcess(),
ProcessImageFileName,
NULL, // buffer
0, // buffer size
&returnedLength);
…
When I test it on 2k I have an error : STATUS_INVALID_INFO_CLASS.
I think ProcessImageFileName does not exist on 2K. Could you confirm that ?
Thank you for your help.
Jeremy