I have used this function and the callback has always been in the context of
the parent process. This is in W2K. It appears to be the same way with XP
but I have not confirmed this.
Bill Wandel
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Curless, Jeffrey
Sent: Friday, February 14, 2003 8:49 AM
To: NT Developers Interest List
Subject: [ntdev] RE: PsGetCurrentProcess and PsActiveProcessHead
If you are using PsSetCreateProcessNotifyRoutine you should look
at the DDK documentation again, as you are not guaranteed to be
called in the context of the new process.
“When it is called, the driver’s process-creation notify routine
runs at IRQL PASSIVE_LEVEL, either in the context of the initial
thread within a newly created process or in the context of a
system thread.”
Actually looking over the ddk I’m not entirely sure if they are
talking about when the process is starting or stopping that it
can be in a system thread. Anyone?
-Jeff
-----Original Message-----
From: krishnaa [mailto:xxxxx@nothing.com]
Sent: Thursday, February 13, 2003 11:51 PM
To: NT Developers Interest List
Subject: [ntdev] RE: PsGetCurrentProcess and PsActiveProcessHead
Hi Satish ,
I am not using EPROCESS to see new processes and threads , I have
callbacks for process creation ,here the callback function gets called in
the context of newly created process , so I have visibility over this
process , now I have to obtain full information about this process , such
as loaded modules , the function names exported my these modules initial
memory allocated etc… I agree I can do it better using win32 and
everybody suggests me that , but I have some more things also , like I
have to filter file system IRP’s , I have to filter network calls , and
all the things have relation with each other … I cant explain my req.
here in small place and I am not allowed to talk detailed.
Think that I have to anyhow use ring0 for the scanning , this scanning is
not only file scanning for viruses (which almost every antivirus does.)
but more in memory check and watch on process IPC too.
I know everything is possible with known interfaces only…lets see.
Satish , can you suggest me some books ?
You are currently subscribed to ntdev as: xxxxx@concord.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
the latest virus scan software available for the presence of computer
viruses.
**********************************************************************
You are currently subscribed to ntdev as: xxxxx@bwandel.com
To unsubscribe send a blank email to xxxxx@lists.osr.com