コード例 #1
0
ファイル: Process.cs プロジェクト: JeffreyZksun/gpstranslator
		/// <summary>
		/// Initializes a new instance of the OpenNETCF.Diagnostics.Process class.
		/// </summary>
		public Process()
		{
			m_pstart = new ProcessStartInfo();
			m_pinfo = new ProcessInfo();
			m_exited = false;
		}
コード例 #2
0
ファイル: Process.cs プロジェクト: JeffreyZksun/gpstranslator
		/// <summary>
		/// Starts the process resource that is specified by the parameter containing process start information (for example, the file name of the process to start) and associates the resource with a new OpenNETCF.Diagnostics.Process component.
		/// </summary>
		/// <param name="startInfo">The OpenNETCF.Diagnostics.ProcessStartInfo that contains the information that is used to start the process, including the file name and any command line arguments.</param>
		/// <returns>A new OpenNETCF.Diagnostics.Process component that is associated with the process resource, or null if no process resource is started (for example, if an existing process is reused).</returns>
		public static Process Start(ProcessStartInfo startInfo)
		{
			Process newprocess = new Process();
			newprocess.m_pstart = startInfo;
			newprocess.Start();

			return newprocess;
		}