Re: OpenProcess() API: SeDebugPrivilege req'd just to synchronize???
- From: "Bill Davidson" <RatherBeCoding@xxxxxxxxxxxxxxxx>
- Date: Tue, 1 May 2007 14:35:22 -0700
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
.
- References:
- OpenProcess() API: SeDebugPrivilege req'd just to synchronize???
- From: Bill Davidson
- OpenProcess() API: SeDebugPrivilege req'd just to synchronize???
- Prev by Date: Re: Notifications running unsigned EXE on Vista
- Next by Date: Re: Verifying Digital Signatures - Different results on different
- Previous by thread: OpenProcess() API: SeDebugPrivilege req'd just to synchronize???
- Next by thread: c# tcp client.connect unauthorized
- Index(es):