Re: CreateProcessWithLogonW on Server 2003
From: Vincent Finn (1_at_2.com)
Date: 07/12/04
- Previous message: Michel Gallant: "Re: CryptoAPI signature getting verified in java"
- In reply to: Yu Chen [MS]: "Re: CreateProcessWithLogonW on Server 2003"
- Next in thread: Yu Chen [MS]: "Re: CreateProcessWithLogonW on Server 2003"
- Reply: Yu Chen [MS]: "Re: CreateProcessWithLogonW on Server 2003"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Mon, 12 Jul 2004 16:37:13 +0100
On Wed, 7 Jul 2004 16:46:42 -0700, "Yu Chen [MS]"
<yuchen@online.microsoft.com> wrote:
>That's a known issue in Windows Server 2003 - the CreateProcessWithLogonW
>API is changed to better handle the new process' use of desktop by utilizing
>"Logon Sid" in the caller's token. However the local system token (under
>which your service is running) doesn't have a "Logon sid" so the API failed
>when caller is local system.
>
>If the caller is local system, you can use LogonUser and CreateProcessAsUser
>to achieve the same thing.
That sorted it, thanks.
LogonUser only seems to work if I use 'LOGON32_LOGON_INTERACTIVE'
rather than 'LOGON32_LOGON_BATCH'
any idea why that might be?
Vin
- Previous message: Michel Gallant: "Re: CryptoAPI signature getting verified in java"
- In reply to: Yu Chen [MS]: "Re: CreateProcessWithLogonW on Server 2003"
- Next in thread: Yu Chen [MS]: "Re: CreateProcessWithLogonW on Server 2003"
- Reply: Yu Chen [MS]: "Re: CreateProcessWithLogonW on Server 2003"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|