Re: ERROR_NOT_ALL_ASSIGNED, why?

From: lallous (lallous_at_lgwm.org)
Date: 07/14/04


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


Relevant Pages

  • Re: Using ldifde & csvde
    ... This posting is provided "AS IS" with no warranties, and confers no rights. ... > How can I get the Windows 2000 versions and will they work with a Windows ... >> Use of included script samples are subject to the terms specified at ...
    (microsoft.public.windows.server.active_directory)
  • RE: SQLSink Sample
    ... This posting is provided "AS IS" with no warranties, and confers no rights. ... Use of included script samples are subject to the terms specified at ...
    (microsoft.public.vsnet.enterprise.tools)
  • Re: Convert Express To Server
    ... This posting is provided "AS IS" with no warranties, and confers no rights. ... Use of included script samples are subject to the terms specified at ...
    (microsoft.public.sqlserver.setup)
  • Re: Programmatically replicate an Active Directory partition
    ... This posting is provided "AS IS" with no warranties, and confers no rights. ... > Use of included script samples are subject to the terms specified at ...
    (microsoft.public.windows.server.active_directory)
  • Re: Lost admin access to ADAM
    ... This posting is provided "AS IS" with no warranties, and confers no rights. ... Use of included script samples are subject to the terms specified at ...
    (microsoft.public.windows.server.active_directory)