I am developing a driver which notifies an application about processes being started and images being loaded. I encountered the following strange error on Win7, SP1:
When Windows calls my LoadImageNotifyRoutine (registered with PsSetLoadImageNotifyRoutine), it passes an invalid ProcessId. The ProcessId passed represents the parent process instead of the actual process in the case of an *.exe file being mapped. ProcessId is correct for all *.dll files mapped. Has anyone of you already encountered this bug?
I already checked PsGetCurrentProcessId and it represents the same parent process in case of an *.exe being mapped. It seems on Win10 this issue is fixed.
Got any clues or solutions?
When Windows calls my LoadImageNotifyRoutine (registered with PsSetLoadImageNotifyRoutine), it passes an invalid ProcessId. The ProcessId passed represents the parent process instead of the actual process in the case of an *.exe file being mapped. ProcessId is correct for all *.dll files mapped. Has anyone of you already encountered this bug?
I already checked PsGetCurrentProcessId and it represents the same parent process in case of an *.exe being mapped. It seems on Win10 this issue is fixed.
Got any clues or solutions?