Re: Userinit.exe fails no initialize!
From: Jeff Henkels (jeff_at_mapson.privatemail.com)
Date: 09/23/04
- Next message: Mathias Ellinger: "Re: Bluetooth New Radio Revice Notification"
- Previous message: Keith Sheppard: "Re: ::CreateFile(USB)?"
- In reply to: Sara Fonseca: "Userinit.exe fails no initialize!"
- Next in thread: Sara Fonseca: "Re: Userinit.exe fails no initialize!"
- Reply: Sara Fonseca: "Re: Userinit.exe fails no initialize!"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 23 Sep 2004 08:00:23 -0400
Check the return value from CreateProcessAsUser; if it's zero, that
indicates the function failed and that you should call GetLastError to get
the specific cause of the failure.
"Sara Fonseca" <sara.fonseca@gmail.com> wrote in message
news:elAP43NoEHA.2948@TK2MSFTNGP11.phx.gbl...
>I am trying to rewrite gina on windows XP.
> My function WlxActivateUserShell goes like this in ginastub:
>
> si.cb = sizeof(STARTUPINFO);
> si.lpReserved = NULL;
> si.lpTitle = "userinit";
> si.dwX = si.dwY = si.dwXSize = si.dwYSize = 0;
> si.dwFlags = STARTF_USESHOWWINDOW;
> si.wShowWindow = SW_SHOW;
> si.lpReserved2 = NULL;
> si.cbReserved2 = 0;
> si.lpDesktop = pszDesktopName;
>
> result = CreateProcessAsUser(pgContext->UserToken,
> "userinit.exe",
> NULL, NULL, NULL, FALSE,
> CREATE_UNICODE_ENVIRONMENT,
> pEnvironment,
> NULL,
> &si,
> &pi );
>
> VirtualFree(pEnvironment, 0, MEM_RELEASE);
> return result;
>
>
>
>
> What could that be?
>
> thanks!
>
> Sara
>
>
- Next message: Mathias Ellinger: "Re: Bluetooth New Radio Revice Notification"
- Previous message: Keith Sheppard: "Re: ::CreateFile(USB)?"
- In reply to: Sara Fonseca: "Userinit.exe fails no initialize!"
- Next in thread: Sara Fonseca: "Re: Userinit.exe fails no initialize!"
- Reply: Sara Fonseca: "Re: Userinit.exe fails no initialize!"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|