Re: ERROR_NOT_ALL_ASSIGNED, why?
From: lallous (lallous_at_lgwm.org)
Date: 07/14/04
- Next message: Slava M. Usov: "Re: Get interactively logged on user"
- Previous message: qfel: "Re: Searching Memory"
- In reply to: Ivan Brugiolo [MSFT]: "Re: ERROR_NOT_ALL_ASSIGNED, why?"
- Next in thread: Slava M. Usov: "Re: ERROR_NOT_ALL_ASSIGNED, why?"
- Reply: Slava M. Usov: "Re: ERROR_NOT_ALL_ASSIGNED, why?"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 14 Jul 2004 15:06:45 +0300
Hello Ivan
Yes indeed, it happened where you described ( @ AdjustTokenPrivileges() )
and also after OpenProcess().
But why? That same code works sometimes and doesn't some other times.
Please advise.
-- Elias "Ivan Brugiolo [MSFT]" <ivanbrug@online.microsoft.com> wrote in message news:%23KdKziPaEHA.1244@TK2MSFTNGP10.phx.gbl... > Can you test the last-error immediately after the AdjustTokenPrivileges call > ? > I'm afraid that you are seeing an "old" LastError code. > > -- > This posting is provided "AS IS" with no warranties, and confers no rights. > Use of any included script samples are subject to the terms specified at > http://www.microsoft.com/info/cpyright.htm > > > "lallous" <lallous@lgwm.org> wrote in message > news:OV3A97NaEHA.3512@TK2MSFTNGP12.phx.gbl... > > Hello > > > > Couple of days ago I wrote two simple programs: > > > > proc1.exe: > > 1.CreateProcessWithLogon(..., "proc2.exe", adminuser, adminuserpassword, > > ...) > > 2.WaitForSingleObject(pi.hProcess) > > 3.clean up > > > > proc2.exe: > > 1.Acquire debug privilege > > 2.OpenProcess(PROCESS_ALL_ACCESS, TRUE, ::GetCurrentProcessId()) > > -> I am getting ERROR_NOT_ALL_ASSIGNED !! > > > > What happened? That code used to work until I installed couple of windows > > updates, not sure which one affected or if any affected at all! > > > > Please advise. > > > > -- > > Elias
- Next message: Slava M. Usov: "Re: Get interactively logged on user"
- Previous message: qfel: "Re: Searching Memory"
- In reply to: Ivan Brugiolo [MSFT]: "Re: ERROR_NOT_ALL_ASSIGNED, why?"
- Next in thread: Slava M. Usov: "Re: ERROR_NOT_ALL_ASSIGNED, why?"
- Reply: Slava M. Usov: "Re: ERROR_NOT_ALL_ASSIGNED, why?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|