以下は、process.start の状況で問題なく機能します。
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);
}
CreateProcess を使用する場合、'.Arguments' をどこに配置し、CREATE_SUSPENDED もどこに配置しますか?
CreateProcess(AppName, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, false, 0, IntPtr.Zero, null, ref si, out pi);