RE: Strange Behavior with CreateProcessWithLogonW
From: Krishna Monian (KrishnaMonian_at_discussions.microsoft.com)
Date: 10/29/04
- Next message: Gary Chanson: "Re: Launching an application in its own process space (windows XP)"
- Previous message: Slobodan Brcin \(eMVP\): "Re: help finding USB physical addresses"
- In reply to: Krishna Monian: "Strange Behavior with CreateProcessWithLogonW"
- Next in thread: Gary Chanson: "Re: Strange Behavior with CreateProcessWithLogonW"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 29 Oct 2004 10:55:03 -0700
> I am writing some sort of a processwatchdog that starts a process from
> within it, and keeps a watch on it. Initially I was using the CreateProcess
> call. I also create a pipe using CreatePipe so that I can read the stdout of
> the process I start from within the watchdog application. I also print out
> whatever I read to the stdout of the watchdog process. This was working fine.
> I have now changed the code to use CreateProcessWithLogonW so that the
> process I am create runs under a separate user. In both cases the process is
> created with the following command-line:
> "cmd /c <command line of the process>"
>
> However, after the change to CreateProcessWithLogonW I am seeing some
> strange behavior. Whatever I print out from the watchdog process (using
> printf) goes to the command prompt that pops up due to the "cmd /c ...."
> command, instead of going to the prompt where the watchdog process was
> started from. What is even more strange is that on one of the machines that I
> tested it on, it seems to work fine.
>
> I am completely baffled on this. Could anyone tell me what is going on over
> here?
>
Just want to add that the machine it works on runs SP2 while the machines it
fails to work on run either SP1 or no SP.
Thanks
Krishna Monian
- Next message: Gary Chanson: "Re: Launching an application in its own process space (windows XP)"
- Previous message: Slobodan Brcin \(eMVP\): "Re: help finding USB physical addresses"
- In reply to: Krishna Monian: "Strange Behavior with CreateProcessWithLogonW"
- Next in thread: Gary Chanson: "Re: Strange Behavior with CreateProcessWithLogonW"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|