Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RE: CreateProcess' first param. ApplicationName

Status
Not open for further replies.

EngineersForge

Technical User
Aug 26, 2003
15
0
0
CA
I can get the CreateProcess() to work well enough, but I don't know what the first parameter to it is.

What is a module name; the executable's name is not working??? It does work for the second parameter to the CreateProcess () however.
 
If you specify both an application name, and a command line, then the first parameter is the application to execute, and the second parameter is the command line to be submitted to the application.

CreateProcess ("TheExeFile", "Parameters", ...

If the ApplicationName is Null, which is certainly ok, then the first word inside the command line is the module, or the executable process, with the rest being command line parameters.

CreateProcess ("", "TheExeFile Parameters", ...

If the CommandLine is Null, then the same rule applies to the ApplicationName parameters.

CreateProcess ("TheExeFile Parameters", "", ...

Hope that makes some sense.

Good Luck
--------------
As a circle of light increases so does the circumference of darkness around it. - Albert Einstein
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top