Re: ERROR_NOT_ALL_ASSIGNED, why?
From: lallous (lallous_at_lgwm.org)
Date: Wed, 14 Jul 2004 15:06:45 +0300
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.
-- Elias "Ivan Brugiolo [MSFT]" <firstname.lastname@example.org> 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" <email@example.com> 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