Re: CreateProcessWithLogonW on Server 2003
From: Alstersjo (Alstersjo_at_discussions.microsoft.com)
Date: 07/08/04
- Next message: Antonio: "Under which credentials COM makes calls from another process?"
- Previous message: Yu Chen [MS]: "Re: CreateProcessWithLogonW on Server 2003"
- 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: Wed, 7 Jul 2004 23:34:01 -0700
Hi Yu Chen
I have a similar problem and have looked on LogonUser and CreateProcessAsUser but I can't find out how to write the code (I'm a beginner in programming). Do you have or know were to find a sample code for this?
Best Regards Henrik
"Yu Chen [MS]" 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.
>
> --
> Yu Chen [MS]
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
> "Vincent Finn" <1@2.com> wrote in message
> news:7jnne098k8emcb7siirc4djfngh1qsn9sg@4ax.com...
> > Hi,
> >
> > Not sure if this is the right news group for this but I have a process
> > that calls CreateProcessWithLogonW
> > It works fine on 2000 and XP but I get an "Access Denied" error on
> > Server 2003.
> > The process is a service running under teh SYSTEM account.
> >
> > Does anyone know what extra permissions are required on 2003?
> > The MSDN doesn't mention anything.
> >
> > CreateProcessWithLogonW is called with LOGON_WITH_PROFILE if that
> > matters
> >
> > Any suggestions appreciated
> >
> > Vin
>
>
>
- Next message: Antonio: "Under which credentials COM makes calls from another process?"
- Previous message: Yu Chen [MS]: "Re: CreateProcessWithLogonW on Server 2003"
- 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
|