Re: Calling CreateProcessWithLogonW from a Windows Service
From: Pavel Lebedinsky [MSFT] (pavel_at_online.microsoft.com)
Date: 06/17/05
- Next message: Levy: "HCRYPTKEY from actual key bytes"
- Previous message: Marco van Nieuwenhoven: "RE: OK ... Re: A strange problem with Service ..."
- In reply to: Joe Richards [MVP]: "Re: Calling CreateProcessWithLogonW from a Windows Service"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Fri, 17 Jun 2005 00:20:55 -0700
0xc0000142 is STATUS_DLL_INIT_FAILED (from ntstatus.h). Since
it's an NTSTATUS, not a win32 error, you can't feed it to net helpmsg.
This error often happens when a process doesn't have access to its
windowstation or desktop, which causes user32 initialization to fail.
You can check if this is what's happening in your case by creating a
simple program that doesn't link to user32.dll and launching it instead.
-- This posting is provided "AS IS" with no warranties, and confers no rights. "Joe Richards [MVP]" wrote: > The 0x142 doesn't map to any Windows Error messages, that is 322 which > gets you this > > F:\DEV\cpp\SvcUtil>net helpmsg 322 > 322 is not a valid Windows network message number. > > > It could be an issue with the application it is trying to launch. I have a > tool that works with that same API and occasionally I hear about apps that > it just can't start up for whatever reason. LocalSystem is an obvious > problem but you say the service isn't running as localsystem so that > shouldn't be involved. > > You might consider using localsystem and using logonuser to see if that > works. > >> The security context of the service is any domain user. No local system >> account is in the picture.
- Next message: Levy: "HCRYPTKEY from actual key bytes"
- Previous message: Marco van Nieuwenhoven: "RE: OK ... Re: A strange problem with Service ..."
- In reply to: Joe Richards [MVP]: "Re: Calling CreateProcessWithLogonW from a Windows Service"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|