🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: microsoft.public.vc.language
Article #22

Re: CreateProcess fails ...

#22
From: Jan Bares
Date: Thu, 05 Apr 2001 06:29
54 lines
2242 bytes
  // start the process
 STARTUPINFO StartInfo;

 StartInfo.cb  = sizeof(STARTUPINFO);
 StartInfo.lpReserved =
 StartInfo.lpDesktop =
 StartInfo.lpTitle = NULL;
 StartInfo.dwFlags = 0;
 StartInfo.cbReserved2 = 0;
 StartInfo.lpReserved2 = NULL;

 PROCESS_INFORMATION ProcessInfo;

 CreateProcess(NULL,
   "regsvr32.exe /s somedll.dll",
   NULL, NULL, // security
   FALSE,  // inherit handles
   0,  // default process flags
   NULL,  // use parent environment
   NULL, // current directory, ignored for 16-bit applications
   &StartInfo,
   &ProcessInfo);

// cleanup
 CloseHandle(ProcessInfo.hProcess);
 CloseHandle(ProcessInfo.hThread);



--

Jan Bares
(remove no.spam from my email address)
JPCAD Graphics Engine developer, surf to http://www.antek.cz


"Herve Autret" <autreh@free.fr> wrote in message
news:3ACB8AD5.6DAD0AAE@free.fr...
> Hi,
>
> Jan Bares wrote:
>
> > STARTUPINFO is *input* parameter....
>
> Comprendo ! That's not what's written on my short papers. Do you know
> the default parameters for a console application ?
> Anyhow I'm going to have a look in a *true* Windows programming book ...
> By the way, do you know a good one ?
>
>
> best regards
> --
> Herve Autret
>
Technical Details
Message-ID: <uzdY9mZvAHA.1336@tkmsftngp04>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsfeed.wirehub.nl!newsfeed.germany.net!newscore.gigabell.net!newsfeed00.sul.t-online.de!t-online.de!tkmsftngp01!tkmsftngp04
References: <3ACAB336.2DA8E5DA@free.fr> <O3SH$sOvAHA.1968@tkmsftngp03> <3ACB8AD5.6DAD0AAE@free.fr>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11605a,973b47e75c644910
X-Google-Attributes: gid11605a,public
X-Google-Thread: f7a51,973b47e75c644910
X-Google-Attributes: gidf7a51,public
X-Google-ArrivalTime: 2001-04-04 23:36:03 PST
From: "Jan Bares" <jan.bares@antek.cz.no.spam>
References: <3ACAB336.2DA8E5DA@free.fr> <O3SH$sOvAHA.1968@tkmsftngp03> <3ACB8AD5.6DAD0AAE@free.fr>
Subject: Re: CreateProcess fails ...
Date: Thu, 5 Apr 2001 08:29:11 +0200
Lines: 56
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Message-ID: <uzdY9mZvAHA.1336@tkmsftngp04>
Newsgroups: microsoft.public.vc.language,borland.public.cppbuilder.commandlinetools
NNTP-Posting-Host: jan.antek.cz 195.250.137.235
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsfeed.wirehub.nl!newsfeed.germany.net!newscore.gigabell.net!newsfeed00.sul.t-online.de!t-online.de!tkmsftngp01!tkmsftngp04