5 instantiations of Process
System (4)
services\monitoring\system\diagnosticts\Process.cs (4)
1517return new Process(machineName, ProcessManager.IsRemoteMachine(machineName), processId, null); 1599processes[i] = new Process(machineName, isRemoteMachine, processInfo.processId, processInfo); 1625return new Process(".", false, NativeMethods.GetCurrentProcessId(), null); 2349Process process = new Process();
System.AddIn (1)
System\Addin\Hosting\AddInProcess.cs (1)
359Process addInProcess = new Process();
133 references to Process
PresentationFramework (1)
src\Framework\MS\Internal\AppModel\XappLauncher.cs (1)
1135System.Diagnostics.Process.Start(startInfo);
System (69)
compmod\system\diagnostics\TraceEventCache.cs (2)
83Process p = Process.GetCurrentProcess();
net\System\Net\NetRegistryConfiguration.cs (2)
168Process currentProcess = Process.GetCurrentProcess();
net\System\Net\UnsafeNativeMethods.cs (1)
3444if (processId == Process.GetCurrentProcess().Id)
services\monitoring\system\diagnosticts\AsyncStreamReader.cs (4)
45private Process process; 60internal AsyncStreamReader(Process process, Stream stream, UserCallBack callback, Encoding encoding) 69internal AsyncStreamReader(Process process, Stream stream, UserCallBack callback, Encoding encoding, int bufferSize) 79private void Init(Process process, Stream stream, UserCallBack callback, Encoding encoding, int bufferSize) {
services\monitoring\system\diagnosticts\PerformanceCounterLib.cs (2)
1131Process p; 1148p = Process.Start(processStartInfo);
services\monitoring\system\diagnosticts\Process.cs (49)
147/// Initializes a new instance of the <see cref='System.Diagnostics.Process'/> class. 442/// Returns the caption of the <see cref='System.Diagnostics.Process.MainWindowHandle'/> of 972/// Gets or sets the properties to pass into the <see cref='System.Diagnostics.Process.Start'/> method for the <see cref='System.Diagnostics.Process'/> 1066/// It is the sum of the <see cref='System.Diagnostics.Process.UserProcessorTime'/> and 1067/// <see cref='System.Diagnostics.Process.PrivilegedProcessorTime'/>. 1113/// Gets or sets whether the <see cref='System.Diagnostics.Process.Exited'/> 1506/// Returns a new <see cref='System.Diagnostics.Process'/> component given a process identifier and 1512public static Process GetProcessById(int processId, string machineName) { 1522/// Returns a new <see cref='System.Diagnostics.Process'/> component given the 1528public static Process GetProcessById(int processId) { 1534/// Creates an array of <see cref='System.Diagnostics.Process'/> components that are 1542public static Process[] GetProcessesByName(string processName) { 1548/// Creates an array of <see cref='System.Diagnostics.Process'/> components that are associated with process resources on a 1554public static Process[] GetProcessesByName(string processName, string machineName) { 1556Process[] procs = GetProcesses(machineName); 1567Process[] temp = new Process[list.Count]; 1574/// Creates a new <see cref='System.Diagnostics.Process'/> 1580public static Process[] GetProcesses() { 1586/// Creates a new <see cref='System.Diagnostics.Process'/> 1593public static Process[] GetProcesses(string machineName) { 1596Process[] processes = new Process[processInfos.Length]; 1618/// Returns a new <see cref='System.Diagnostics.Process'/> 1624public static Process GetCurrentProcess() { 1630/// Raises the <see cref='System.Diagnostics.Process.Exited'/> event. 1759/// that has been cached inside the process component. After <see cref='System.Diagnostics.Process.Refresh'/> is called, the 1862/// Starts a process specified by the <see cref='System.Diagnostics.Process.StartInfo'/> property of this <see cref='System.Diagnostics.Process'/> 1864/// <see cref='System.Diagnostics.Process'/> . If a process resource is reused 1865/// rather than started, the reused process is associated with this <see cref='System.Diagnostics.Process'/> 2288public static Process Start( string fileName, string userName, SecureString password, string domain ) { 2299public static Process Start( string fileName, string arguments, string userName, SecureString password, string domain ) { 2314/// document or application file. Associates the process resource with a new <see cref='System.Diagnostics.Process'/> 2320public static Process Start(string fileName) { 2328/// with a new <see cref='System.Diagnostics.Process'/> 2334public static Process Start(string fileName, string arguments) { 2342/// Associates the process resource with a new <see cref='System.Diagnostics.Process'/> 2348public static Process Start(ProcessStartInfo startInfo) { 2349Process process = new Process(); 2423/// Instructs the <see cref='System.Diagnostics.Process'/> component to wait the specified number of milliseconds for the associated process to exit. 2474/// Instructs the <see cref='System.Diagnostics.Process'/> component to wait 2486/// Causes the <see cref='System.Diagnostics.Process'/> component to wait the 2519/// Instructs the <see cref='System.Diagnostics.Process'/> component to wait 2533/// Instructs the <see cref='System.Diagnostics.Process'/> component to start 2568/// Instructs the <see cref='System.Diagnostics.Process'/> component to start 2603/// Instructs the <see cref='System.Diagnostics.Process'/> component to cancel the asynchronous operation 2621/// Instructs the <see cref='System.Diagnostics.Process'/> component to cancel the asynchronous operation
services\monitoring\system\diagnosticts\ProcessManager.cs (7)
409Debug.WriteLineIf(Process.processTracing.TraceVerbose, "Process - CloseHandle(toolhelp32 snapshot handle)"); 455Debug.WriteLineIf(Process.processTracing.TraceVerbose, "Process - CloseHandle(toolhelp32 snapshot handle)"); 726Debug.WriteLineIf(Process.processTracing.TraceVerbose, "Process - CloseHandle(process)"); 791Debug.WriteLineIf(Process.processTracing.TraceVerbose, "GetProcessInfos()"); 838Debug.WriteLineIf(Process.processTracing.TraceVerbose, "GetProcessInfos() - found a non-idle process with id 0; ignoring."); 845Debug.WriteLineIf(Process.processTracing.TraceVerbose, "GetProcessInfos() - found a duplicate process id"); 1242Debug.WriteLineIf(Process.processTracing.TraceVerbose, "GetProcessInfos() - unexpected blank ProcessName");
services\monitoring\system\diagnosticts\ProcessStartInfo.cs (2)
27/// used in conjunction with the <see cref='System.Diagnostics.Process'/> 72internal ProcessStartInfo(Process parent) {
System.Activities.Presentation (3)
System.Activities.Presentation\System\Activities\Presentation\DialogWindow.cs (1)
91System.Diagnostics.Process.Start(SR.DefaultHelpUrl);
System.Activities.Presentation\System\Activities\Presentation\View\ErrorView.xaml.cs (1)
66System.Diagnostics.Process.Start(SR.DefaultHelpUrl);
System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicEditor.xaml.cs (1)
1736System.Diagnostics.Process.Start(SR.DefaultHelpUrl);
System.AddIn (6)
System\Addin\Hosting\AddInProcess.cs (6)
47private volatile Process _process = null; 145return Process.GetCurrentProcess().Id; 329if(!NativeMethods.IsWow64Process(System.Diagnostics.Process.GetCurrentProcess().Handle, ref isWow)) 357private Process CreateAddInProcess() 359Process addInProcess = new Process(); 361String args = String.Format(CultureInfo.InvariantCulture, "/guid:{0} /pid:{1}", guid, Process.GetCurrentProcess().Id);
System.Data (3)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\DialogWindow.cs (1)
91System.Diagnostics.Process.Start(SR.DefaultHelpUrl);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ErrorView.xaml.cs (1)
66System.Diagnostics.Process.Start(SR.DefaultHelpUrl);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicEditor.xaml.cs (1)
1736System.Diagnostics.Process.Start(SR.DefaultHelpUrl);
System.Management (2)
Instrumentation\SchemaRegistration.cs (2)
719 System.Diagnostics.Process proc = System.Diagnostics.Process.Start ( processInfo ) ;
System.Net (1)
net\PeerToPeer\Collaboration\Peer.cs (1)
296string path = Path.Combine( Environment.CurrentDirectory, Process.GetCurrentProcess().ProcessName + ".exe");
System.ServiceModel (6)
System\ServiceModel\Activation\Utility.cs (1)
35int processId = Process.GetCurrentProcess().Id;
System\ServiceModel\Administration\AppDomainInfo.cs (2)
32Process process = Process.GetCurrentProcess();
System\ServiceModel\Channels\PipeConnection.cs (1)
2493int pid = Process.GetCurrentProcess().Id;
System\ServiceModel\Channels\SharedConnectionListener.cs (1)
625int myPid = Process.GetCurrentProcess().Id;
System\ServiceModel\Channels\UtilityExtension.cs (1)
45pruneInterval = TimeSpan.FromMilliseconds(PruneIntervalMilliseconds + new Random(Process.GetCurrentProcess().Id).Next(PruneIntervalMilliseconds));
System.ServiceModel.Activities (1)
System\ServiceModel\Activities\WorkflowControlEndpoint.cs (1)
94processId = Process.GetCurrentProcess().Id;
System.ServiceModel.Internals (10)
System\Runtime\Diagnostics\DiagnosticTraceBase.cs (4)
220using (Process process = Process.GetCurrentProcess()) 236using (Process process = Process.GetCurrentProcess())
System\Runtime\Diagnostics\EventLogger.cs (6)
282using (Process process = Process.GetCurrentProcess()) 333using (Process process = Process.GetCurrentProcess()) 351using (Process process = Process.GetCurrentProcess())
System.Transactions (4)
System\Transactions\Trace\DiagnosticTrace.cs (4)
69using (Process process = Process.GetCurrentProcess()) 86using (Process process = Process.GetCurrentProcess())
System.Web (10)
Configuration\MachineKeySection.cs (1)
322appName = System.Diagnostics.Process.GetCurrentProcess().MainModule.ModuleName;
DataAccess\SqlConnectionHelper.cs (2)
107Process p = Process.GetCurrentProcess();
Management\WebEvents.cs (3)
2058s_startTime = Process.GetCurrentProcess().StartTime; 2079Process process = Process.GetCurrentProcess();
Security\AuthStoreRoleProvider.cs (2)
548Process p = Process.GetCurrentProcess();
Security\Cryptography\MachineKeyMasterKeyProvider.cs (1)
47_applicationName = HttpRuntime.AppDomainAppVirtualPath ?? Process.GetCurrentProcess().MainModule.ModuleName;
Util\SecUtil.cs (1)
36appName = System.Diagnostics.Process.GetCurrentProcess().
System.Web.DataVisualization (2)
WebForm\General\ChartHttpHandler.cs (2)
1174Process process = Process.GetCurrentProcess();
System.Windows.Forms (6)
winforms\Managed\System\WinForms\Application.cs (5)
1404Process process = Process.GetCurrentProcess(); 1430Process.Start(process.MainModule.FileName, launchUrl); 1463ProcessStartInfo currentStartInfo = Process.GetCurrentProcess().StartInfo; 1473Process.Start(currentStartInfo);
winforms\Managed\System\WinForms\TrustManagerPromptUI.cs (1)
798System.Diagnostics.Process.Start(this.m_defaultBrowserExePath, e.Link.LinkData.ToString());
System.Workflow.Runtime (2)
PerformanceCounterManager.cs (2)
234Process process = Process.GetCurrentProcess();
System.WorkflowServices (1)
System\ServiceModel\Activities\Description\WorkflowRuntimeEndpoint.cs (1)
25Process.GetCurrentProcess().Id,
UIAutomationClient (2)
MS\Internal\Automation\HwndProxyElementProvider.cs (2)
449System.Diagnostics.Process targetProcess = null; 452targetProcess = System.Diagnostics.Process.GetProcessById( pid );
UIAutomationClientsideProviders (4)
MS\Internal\AutomationProxies\Misc.cs (1)
1849string processName = System.Diagnostics.Process.GetProcessById((int)processId).ProcessName;
MS\Internal\AutomationProxies\WinEventTracker.cs (3)
495return Misc.ProxyGetClassName(Process.GetProcessById(processId).MainWindowHandle).Equals("ConsoleWindowClass"); 514Process[] localByName = Process.GetProcessesByName("csrss");