5 instantiations of Process
System (4)
services\monitoring\system\diagnosticts\Process.cs (4)
1517
return new
Process
(machineName, ProcessManager.IsRemoteMachine(machineName), processId, null);
1599
processes[i] = new
Process
(machineName, isRemoteMachine, processInfo.processId, processInfo);
1625
return new
Process
(".", false, NativeMethods.GetCurrentProcessId(), null);
2349
Process process = new
Process
();
System.AddIn (1)
System\Addin\Hosting\AddInProcess.cs (1)
359
Process addInProcess = new
Process
();
133 references to Process
PresentationFramework (1)
src\Framework\MS\Internal\AppModel\XappLauncher.cs (1)
1135
System.Diagnostics.
Process
.Start(startInfo);
System (69)
compmod\system\diagnostics\TraceEventCache.cs (2)
83
Process
p =
Process
.GetCurrentProcess();
net\System\Net\NetRegistryConfiguration.cs (2)
168
Process
currentProcess =
Process
.GetCurrentProcess();
net\System\Net\UnsafeNativeMethods.cs (1)
3444
if (processId ==
Process
.GetCurrentProcess().Id)
services\monitoring\system\diagnosticts\AsyncStreamReader.cs (4)
45
private
Process
process;
60
internal AsyncStreamReader(
Process
process, Stream stream, UserCallBack callback, Encoding encoding)
69
internal AsyncStreamReader(
Process
process, Stream stream, UserCallBack callback, Encoding encoding, int bufferSize)
79
private void Init(
Process
process, Stream stream, UserCallBack callback, Encoding encoding, int bufferSize) {
services\monitoring\system\diagnosticts\PerformanceCounterLib.cs (2)
1131
Process
p;
1148
p =
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
1512
public static
Process
GetProcessById(int processId, string machineName) {
1522
/// Returns a new <see cref='System.Diagnostics.
Process
'/> component given the
1528
public static
Process
GetProcessById(int processId) {
1534
/// Creates an array of <see cref='System.Diagnostics.
Process
'/> components that are
1542
public static
Process
[] GetProcessesByName(string processName) {
1548
/// Creates an array of <see cref='System.Diagnostics.
Process
'/> components that are associated with process resources on a
1554
public static
Process
[] GetProcessesByName(string processName, string machineName) {
1556
Process
[] procs = GetProcesses(machineName);
1567
Process
[] temp = new
Process
[list.Count];
1574
/// Creates a new <see cref='System.Diagnostics.
Process
'/>
1580
public static
Process
[] GetProcesses() {
1586
/// Creates a new <see cref='System.Diagnostics.
Process
'/>
1593
public static
Process
[] GetProcesses(string machineName) {
1596
Process
[] processes = new
Process
[processInfos.Length];
1618
/// Returns a new <see cref='System.Diagnostics.
Process
'/>
1624
public 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
'/>
2288
public static
Process
Start( string fileName, string userName, SecureString password, string domain ) {
2299
public 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
'/>
2320
public static
Process
Start(string fileName) {
2328
/// with a new <see cref='System.Diagnostics.
Process
'/>
2334
public static
Process
Start(string fileName, string arguments) {
2342
/// Associates the process resource with a new <see cref='System.Diagnostics.
Process
'/>
2348
public static
Process
Start(ProcessStartInfo startInfo) {
2349
Process
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)
409
Debug.WriteLineIf(
Process
.processTracing.TraceVerbose, "Process - CloseHandle(toolhelp32 snapshot handle)");
455
Debug.WriteLineIf(
Process
.processTracing.TraceVerbose, "Process - CloseHandle(toolhelp32 snapshot handle)");
726
Debug.WriteLineIf(
Process
.processTracing.TraceVerbose, "Process - CloseHandle(process)");
791
Debug.WriteLineIf(
Process
.processTracing.TraceVerbose, "GetProcessInfos()");
838
Debug.WriteLineIf(
Process
.processTracing.TraceVerbose, "GetProcessInfos() - found a non-idle process with id 0; ignoring.");
845
Debug.WriteLineIf(
Process
.processTracing.TraceVerbose, "GetProcessInfos() - found a duplicate process id");
1242
Debug.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
'/>
72
internal ProcessStartInfo(
Process
parent) {
System.Activities.Presentation (3)
System.Activities.Presentation\System\Activities\Presentation\DialogWindow.cs (1)
91
System.Diagnostics.
Process
.Start(SR.DefaultHelpUrl);
System.Activities.Presentation\System\Activities\Presentation\View\ErrorView.xaml.cs (1)
66
System.Diagnostics.
Process
.Start(SR.DefaultHelpUrl);
System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicEditor.xaml.cs (1)
1736
System.Diagnostics.
Process
.Start(SR.DefaultHelpUrl);
System.AddIn (6)
System\Addin\Hosting\AddInProcess.cs (6)
47
private volatile
Process
_process = null;
145
return
Process
.GetCurrentProcess().Id;
329
if(!NativeMethods.IsWow64Process(System.Diagnostics.
Process
.GetCurrentProcess().Handle, ref isWow))
357
private
Process
CreateAddInProcess()
359
Process
addInProcess = new Process();
361
String 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)
91
System.Diagnostics.
Process
.Start(SR.DefaultHelpUrl);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ErrorView.xaml.cs (1)
66
System.Diagnostics.
Process
.Start(SR.DefaultHelpUrl);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicEditor.xaml.cs (1)
1736
System.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)
296
string path = Path.Combine( Environment.CurrentDirectory,
Process
.GetCurrentProcess().ProcessName + ".exe");
System.ServiceModel (6)
System\ServiceModel\Activation\Utility.cs (1)
35
int processId =
Process
.GetCurrentProcess().Id;
System\ServiceModel\Administration\AppDomainInfo.cs (2)
32
Process
process =
Process
.GetCurrentProcess();
System\ServiceModel\Channels\PipeConnection.cs (1)
2493
int pid =
Process
.GetCurrentProcess().Id;
System\ServiceModel\Channels\SharedConnectionListener.cs (1)
625
int myPid =
Process
.GetCurrentProcess().Id;
System\ServiceModel\Channels\UtilityExtension.cs (1)
45
pruneInterval = TimeSpan.FromMilliseconds(PruneIntervalMilliseconds + new Random(
Process
.GetCurrentProcess().Id).Next(PruneIntervalMilliseconds));
System.ServiceModel.Activities (1)
System\ServiceModel\Activities\WorkflowControlEndpoint.cs (1)
94
processId =
Process
.GetCurrentProcess().Id;
System.ServiceModel.Internals (10)
System\Runtime\Diagnostics\DiagnosticTraceBase.cs (4)
220
using (
Process
process =
Process
.GetCurrentProcess())
236
using (
Process
process =
Process
.GetCurrentProcess())
System\Runtime\Diagnostics\EventLogger.cs (6)
282
using (
Process
process =
Process
.GetCurrentProcess())
333
using (
Process
process =
Process
.GetCurrentProcess())
351
using (
Process
process =
Process
.GetCurrentProcess())
System.Transactions (4)
System\Transactions\Trace\DiagnosticTrace.cs (4)
69
using (
Process
process =
Process
.GetCurrentProcess())
86
using (
Process
process =
Process
.GetCurrentProcess())
System.Web (10)
Configuration\MachineKeySection.cs (1)
322
appName = System.Diagnostics.
Process
.GetCurrentProcess().MainModule.ModuleName;
DataAccess\SqlConnectionHelper.cs (2)
107
Process
p =
Process
.GetCurrentProcess();
Management\WebEvents.cs (3)
2058
s_startTime =
Process
.GetCurrentProcess().StartTime;
2079
Process
process =
Process
.GetCurrentProcess();
Security\AuthStoreRoleProvider.cs (2)
548
Process
p =
Process
.GetCurrentProcess();
Security\Cryptography\MachineKeyMasterKeyProvider.cs (1)
47
_applicationName = HttpRuntime.AppDomainAppVirtualPath ??
Process
.GetCurrentProcess().MainModule.ModuleName;
Util\SecUtil.cs (1)
36
appName = System.Diagnostics.
Process
.GetCurrentProcess().
System.Web.DataVisualization (2)
WebForm\General\ChartHttpHandler.cs (2)
1174
Process
process =
Process
.GetCurrentProcess();
System.Windows.Forms (6)
winforms\Managed\System\WinForms\Application.cs (5)
1404
Process
process =
Process
.GetCurrentProcess();
1430
Process
.Start(process.MainModule.FileName, launchUrl);
1463
ProcessStartInfo currentStartInfo =
Process
.GetCurrentProcess().StartInfo;
1473
Process
.Start(currentStartInfo);
winforms\Managed\System\WinForms\TrustManagerPromptUI.cs (1)
798
System.Diagnostics.
Process
.Start(this.m_defaultBrowserExePath, e.Link.LinkData.ToString());
System.Workflow.Runtime (2)
PerformanceCounterManager.cs (2)
234
Process
process =
Process
.GetCurrentProcess();
System.WorkflowServices (1)
System\ServiceModel\Activities\Description\WorkflowRuntimeEndpoint.cs (1)
25
Process
.GetCurrentProcess().Id,
UIAutomationClient (2)
MS\Internal\Automation\HwndProxyElementProvider.cs (2)
449
System.Diagnostics.
Process
targetProcess = null;
452
targetProcess = System.Diagnostics.
Process
.GetProcessById( pid );
UIAutomationClientsideProviders (4)
MS\Internal\AutomationProxies\Misc.cs (1)
1849
string processName = System.Diagnostics.
Process
.GetProcessById((int)processId).ProcessName;
MS\Internal\AutomationProxies\WinEventTracker.cs (3)
495
return Misc.ProxyGetClassName(
Process
.GetProcessById(processId).MainWindowHandle).Equals("ConsoleWindowClass");
514
Process
[] localByName =
Process
.GetProcessesByName("csrss");