Re: ProcessNotifyRoutine and NtQueryInformationProcess
- From: "Don Burn" <burn@xxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 12 Oct 2007 08:22:02 -0400
Well you have another problem the process is not in then process table when
the notify routineis called so you cannot open it or get details
What are you trying to do?
--
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr
Remove StopSpam to reply
"Eugene Korobko" <ekorobko@xxxxxxxxx> wrote in message
news:%23N80tcMDIHA.3716@xxxxxxxxxxxxxxxxxxxxxxx
Hi All!
Sorry for stupid question, I'm newer in driver development.
I added process creation notifier with
PsSetCreateProcessNotifyRoutine
function. My handler called succesfully, but it gets
HANDLE ProcessId
only. I need some details for the process being created, ecactly Desktop
name.
There is a function
NtQueryInformationProcess
that should return
PROCESS_BASIC_INFORMATION
structure and this structure contains pointer to PEB.
But it wants process handle, not process id. Could anybody give me any
sample? Tha task seems to be common.
Thanks,
Eguene Korobko
.
- Follow-Ups:
- Re: ProcessNotifyRoutine and NtQueryInformationProcess
- From: Eugene Korobko
- Re: ProcessNotifyRoutine and NtQueryInformationProcess
- Prev by Date: Re: Detecting OS loader lock
- Next by Date: Re: ProcessNotifyRoutine and NtQueryInformationProcess
- Previous by thread: Interacting with winlogon Desktop of Windows Vista
- Next by thread: Re: ProcessNotifyRoutine and NtQueryInformationProcess
- Index(es):
Relevant Pages
|