Re: Start a new process WITH a visible window from a service?




"Mikael" <Mikael@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:F920E338-FDEF-4D96-B3E6-D0688DD56339@xxxxxxxxxxxxxxxx
> Hello!
> I have written a simple service from which I would like to initiate a new
> process that is started as a new window, visible for the user!!
> I have tried CreateProcess with new process and SW_SHOWNORMAL/SW_SHOW
e.t.c.
> flag active!! Process starts BUT no window appears?
> I also tried the ShellExecuteEx function with appropriate startup
parameters
> but process still starts with NO visible window.
> I made the test using "Notepad.exe" as the visible editor that is to be
> started!!
>
> How can I start a new VISIBLE process from my installed service?
> Should code example would really help! :)
>
> Best Regards,
>

Mikael,

IIRC, you need to set the service to 'interact with the desktop' in order to
be able to do things like this.

cheers

Simon


.



Relevant Pages

  • New processes blocked after connecting via dial-up
    ... Windows XP refuses to allow any new processes to initiate ... start until the process block clears. ... generally open a new IE window. ... Has anyone experienced, or even heard of, similar symptoms? ...
    (microsoft.public.windowsxp.help_and_support)
  • Temporary new process block after dial-up
    ... the following symptoms are observed consistently: ... refuses to allow any new processes to initiate for up to ... refuses to start until the process block clears. ... -- If an IE window is open, most websites are accessible, ...
    (microsoft.public.windowsxp.general)
  • New processes blocked after connecting via dial-up
    ... Windows XP refuses to allow any new processes to initiate ... start until the process block clears. ... generally open a new IE window. ... Has anyone experienced, or even heard of, similar symptoms? ...
    (microsoft.public.windowsxp.general)
  • Re: Encrypt String or different approach
    ... > those processes is to allow them to download files in their FTP Root ... > then provides a link that would spawn a new window which would initiate ... > 2) if spawning a new window is the route i go is there a way to encrypt ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Encrypt String or different approach
    ... > those processes is to allow them to download files in their FTP Root ... > then provides a link that would spawn a new window which would initiate ... > 2) if spawning a new window is the route i go is there a way to encrypt ...
    (microsoft.public.dotnet.framework.aspnet.security)