A forum for reverse engineering, OS internals and malware analysis 

Ask your beginner questions here.
 #8419  by irp
 Mon Sep 05, 2011 5:13 pm
Hi all,

from msdn: FltGetRequestorProcessId returns the process ID for the process that the requesting thread is currently attached to. This process may or may not be the same process that created the thread.

So, there is a way to find the owner process ID?

Thanks, irp
 #8450  by EP_X0FF
 Wed Sep 07, 2011 1:02 pm
FLT_CALLBACK_DATA has Thread field (Pointer to the thread that initiated the I/O operation), which is PETHREAD.

ep = IoThreadToProcess(et), id = PsGetProcessId(ep)

?

FltGetRequestorProcessId just PsGetProcessId for result of FltGetRequestorProcess which calls IoGetRequestorProcess / IoGetCurrentProcess.