Question about CreateProcess

From: -Mr. Coder- (Deathrunner_at_web.de)
Date: 05/16/04


Date: Sun, 16 May 2004 22:00:19 +0200

Hello.
I'm writing a service application with Delphi 7 which should call a GUI
application.
I use the CreateProcess to run the GUI application, but I only get a "beep".
The task manager shows that the GUI application is running, but I can't see
a window. And I also get problems when I try to enumerate the windows using
"EnumWindows". I've read something about "Desktops and Window stations",
probably that what I'm doing wrong... (???)

That's the code:

var si: STARTUPINFO;

with si do
begin
  cb := SizeOf(si);
  lpReserved := nil;
  lpDesktop := nil;
  cbReserved2 := 0;
  lpReserved2 := nil;
  dwFlags := STARTF_USESHOWWINDOW;
  wShowWindow := SW_SHOW;
end;

CreateProcess(nil, PChar(CommandLine), nil, nil, False, 0, nil, nil, si,
pi);

What am I doing wrong?

Thanks in advance.

-Mr. Coder-



Relevant Pages

  • Re: Linux, X, ld, gcc, linking, shared libraries and stuff
    ... It doesn't matter what GUI we're talking about, ... as initial entry of the mouse pointer into a window ("enter / leave" ... out the documentation from Microsoft and for X which confirms it, ... graphics inside the vertical retrace period...this way, ...
    (alt.lang.asm)
  • Re: MacUpdatePromo
    ... easy way to know which app will work which way. ... so users are supposed to know all GUI guidelines and understand the ... when they close a window. ... them to quit. ...
    (comp.sys.mac.advocacy)
  • Re: What does seahorse do?
    ... in closing the window, and pretending it never popped up" isn't very ... checking GPG signatures on list posts, I will studiously avoid GUI ... Help stamp out Mickey-Mouse computer interfaces -- Menus are for Restaurants! ...
    (Ubuntu)
  • Re: Very Basic Help Needed
    ... "install samba etc" command, which I assume worked as I didn't get any error ... instead of using the Run window, ... many of the programs you use in a gui are actually ... the GUI is not set up for root usage. ...
    (Debian-User)
  • Re: SATARaid...?
    ... JavaSataRaid graphics user interface is prewired to start with ... only a GUI and should have no effect. ... > " in it's window. ... >> toolssystem startup and uncheck the box next to the java sata raid. ...
    (microsoft.public.windowsxp.help_and_support)