Well.. i've tried to access the eprocess on my windows 7 x64 machine and when i tried to print the process id i got bsod.
that's the code sample from the driver
that's the code sample from the driver
Code: Select all
In which method are you using to access the EPROCESS?EPROCESS eProcess;
INT iProcess;
eProcess = PsGetCurrentProcess();
iProcess = (INT)eProcess; // that's how i access to eprocess (works on win xp)
DbgPrint("Process Id: %d\r\n", *(INT*)(iProcess + 0x188)); // 0x188 = process id offset on eprocess structure for windows 7 x64