c# - Process.arguments in createprocess? -


the following works fine in process.start situation.

private string path()         {             registrykey key = registry.localmachine.opensubkey("software\\wizet\\");             registrykey location = key.opensubkey("maplestory");             return location.getvalue("execpath").tostring();         }  public bool launch()         {             maplestory = new processstartinfo();             maplestory.filename = path() + @"\maplestory.exe";             maplestory.arguments = "webstart";              maplestory = process.start(maplestory); } 

where place '.arguments' if use createprocess , place create_suspended well?

createprocess(appname, intptr.zero, intptr.zero, intptr.zero, false, 0, intptr.zero, null, ref si, out pi); 

in second argument can put command line options. , in sixth can put creation options create_suspended.

createprocess(appname, "webstart", intptr.zero, intptr.zero, false, create_suspended, intptr.zero, null, ref si, out pi);

for more information see http://msdn.microsoft.com/en-us/library/windows/desktop/ms682425(v=vs.85).aspx


Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

html - Unable to style the color of bullets in a list -

c# - must be a non-abstract type with a public parameterless constructor in redis -