Re: OpenProcess() API: SeDebugPrivilege req'd just to synchronize???



Please disregard. I have found the answer to my question.

Bill

"Bill Davidson" <RatherBeCoding@xxxxxxxxxxxxxxxx> wrote in message
news:%23dXbvw3iHHA.3264@xxxxxxxxxxxxxxxxxxxxxxx
All:

In my program, I'm trying to wait for an external process (i.e.one that
runs under a different user account) to terminate. However I keep getting
"Access is denied" errors when I call OpenProcess() even though I'm only
specifying the lowly 'SYNCHRONIZE (0x00100000L)' access right as follows:

HANDLE hOpen = OpenProcess(SYNCHRONIZE,false,procID);

Of course, if I give my user account the SeDebugPrivilege, the OpenProcess
call above works fines. MSDN OpenProcess() docs state: "To open a handle
[via OpenProcess] to another process and obtain full access rights, you
must enable the SeDebugPrivilege privilege".

I don't wait to obtain *full access rights*, I just want a single, lowly
one. Is the SeDebugPrivilege right a prereq even for this?

Thanks,
Bill




.