执行win应用程序:
System.Diagnostics.Process p;
System.Diagnostics.ProcessStartInfo info = new System.Diagnostics.ProcessStartInfo("HeaterControler.exe");
p=System.Diagnostics.Process.Start(info);
System.Diagnostics.Process p;
System.Diagnostics.ProcessStartInfo info = new System.Diagnostics.ProcessStartInfo("HeaterControler.exe");
p=System.Diagnostics.Process.Start(info);
每隔一段时间调用这个api:
[DllImport("user32.dll", EntryPoint="ShowWindow")]
public static extern int ShowWindow (
System.IntPtr hwnd,
int nCmdShow
);
其中,int nCmdShow给为SW_MAXIMIZE即3