Posted: Tue Jul 18, 2006 8:46 pm
Sorry if i sounded disapproveing or something, wasn't ment that way at all, i was editing the post while writing.KarLKoX wrote:The archive was updated with some changes.
About the odd, read well the code, i never wrote this, but i set first the privilege with the pid, the param for the ObtainSeDebugPrivilege is just named hProcess but the hProcess is the pid.
What i ment about the Odd thing was that i didn't got any Process with (pid = 40), so how could OpenProcessToken return true ?
so the odd stuff came in wrong here, sorry..
Btw, it should never work for the pid this is why with the modified source you will see that i use GetCurrentProcess_() instead to set the privilege to our process wich then should be able to be used to the target process.
It shouldent ? do you mean the real pid of Explorer (mine = 1436) or when i used OpenProcess on it and got 40, -
! i'm still confused about how it could return true on a pid that does'nt exists
I just came home, will take a closer look in an hour or so..
Okay but, but - (sorry if i sound real stupid here)- but when we use GetCurrentProcess_() we use that (@hToken our own process) in AdjustTokenPrivileges(), or did i just lost it here ? (i don't really understand this Token thing)
Sorry if i talk nonsense here, i need some coffee first
Best Henrik