以下工作在process.start情況下很好。createprocess中的Process.arguments?
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);
}
我會在哪裏,現在放在」 .Arguments'如果我使用的CreateProcess並會在哪裏我把CREATE_SUSPENDED呢?
CreateProcess(AppName, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, false, 0, IntPtr.Zero, null, ref si, out pi);