From 792814868feecf3b9b8a6062750b6909205cc0d8 Mon Sep 17 00:00:00 2001 From: Christopher Yeleighton Date: Sat, 15 Jan 2022 13:32:17 +0100 Subject: [PATCH] GetProcesses: on a remote computer The processes you get from a remote computer do not exist on the local computer. Also [GetProcesses()](https://docs.microsoft.com/en-us/dotnet/api/system.diagnostics.process.getprocesses#system-diagnostics-process-getprocesses) may throw. --- xml/System.Diagnostics/Process.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xml/System.Diagnostics/Process.xml b/xml/System.Diagnostics/Process.xml index ea4a7ba4d87..e3257da364c 100644 --- a/xml/System.Diagnostics/Process.xml +++ b/xml/System.Diagnostics/Process.xml @@ -1617,6 +1617,7 @@ The following code example creates a process that prints a file. It sets the + The host system does not support a native call to EnumProcesses. @@ -1672,7 +1673,7 @@ The following code example creates a process that prints a file. It sets the components and associate them with all the process resources on the specified (usually remote) computer. The process resources must already exist on the local computer, because does not create system resources but rather associates resources with application-generated components. Because the operating system itself is running background processes, this array is never empty. + Use this method to create an array of new components and associate them with all the process resources on the specified (usually remote) computer. The process resources must already exist on that computer, because does not create system resources but rather associates resources with application-generated components. Because the operating system itself is running background processes, this array is never empty. If you do not want to retrieve all the processes running on the computer, you can restrict their number by using the or method. creates a component that is associated with the process identified on the system by the process identifier that you pass to the method. creates an array of components whose associated process resources share the executable file you pass to the method.