hi
i want to know what process wants to open an file.
i am chacking process and thread ID in preCreate routine
why am i getting two different process id and thread id?
i know that there are two IRP_MJ_CREATE since some process opens a file,
But why do they have different id?
my code:
processId = FltGetRequestorProcessId(Data);
threadId = HandleToUlong( PsGetCurrentThreadId() );
DbgPrint(“Process id: %ld thread Id: %ld”,processId, threadId);
output:
Process id: 3028 thread Id: 2528
Process id: 3160 thread Id: 2520