Re: How to run a program silently with CreateProcessWithLogonW()?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance




"Alex Hong" <hctiaa@xxxxxxxx> wrote in message
news:u5fEz6nWFHA.796@xxxxxxxxxxxxxxxxxxxxxxx
>
>
> Well, I did made it when I used CreateProcess, the same setting does not
> work with CreateProcessWithLogonW.
>
> I am working on Windows Server 2003. And the parent process is also a
> console process. And, even if I set the creation flag to
!CREATE_NEW_CONSOLE
> or CREATE_NO_WINDOW, a new console window appears.
>
> The child process is written by myself, so I am quite sure it won't create
a
> new console.
>
> Any more bright ideas?
>

Hey, just throwing up some possibilities smart-a--. :-)

How are you calling the application? direct or with the comspec?

We don't have this problem and our product requires such windowless
sub-process runs as part its fundamental operations. So in lieu of showing
code, one can only suspect a mistake in the coding. This is done on a
regular basis.

PS: I believe you meant ~CREATE_NEW_CONSOLE if you are trying to not a bit
mask, but I don't see how that applies, since it is off by default.

----
Hector Santos, CTO
Santronics Software, Inc.
http://www.santronics.com
http://www.winserver.com/wcsap (Wildcat! Sender Authentication Protocol)
http://www.winserver.com/spamstats (WcSAP Anti-Spam Stats)

.



Relevant Pages

  • Screen flash when using cl.exe
    ... same bug exists with Microsoft's cl.exe compiler. ... I request that it be replaced with CreateProcess. ... When Windows starts a subprocess, it will try and attach it to a console unless ...
    (microsoft.public.dotnet.languages.vc)
  • Re: Screen flash when using cl.exe
    ... PS This problem exists with the Visual C++ .NET 2003 compiler. ... > When Windows starts a subprocess, it will try and attach it to a console ... Then I modified the first application to use CreateProcess ...
    (microsoft.public.dotnet.languages.vc)
  • connecting 2 createprocess - like piping in DOS - how?
    ... I have 2 console programs that, in DOS, can be "piped" ... How can this be done in windows using createprocess ... I already know how to setup createprocess to run the console ...
    (borland.public.delphi.language.objectpascal)
  • Re: CreateProcessAsUser - Process starts then exits
    ... Windows XP Media Center ... public Int32 dwX; ... public IntPtr lpReserved2; ... parent's console. ...
    (microsoft.public.win32.programmer.kernel)
  • Re: CreateProcessAsUser - Process starts then exits
    ... service most likely runs in a separate invisible session. ... the program I was trying to start was a windows forms app I ... public IntPtr lpReserved2; ... parent's console. ...
    (microsoft.public.win32.programmer.kernel)