Skip to content

Commit 9b8e826

Browse files
committed
Address feedback
1 parent f4e7421 commit 9b8e826

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

xml/System.Diagnostics/Process.xml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -705,7 +705,7 @@ process.BeginOutputReadLine();
705705
<format type="text/markdown"><![CDATA[
706706

707707
## Remarks
708-
When a process is executing, its message loop is in a wait state. The message loop executes every time a Windows message is sent to the process by the operating system. Calling <xref:System.Diagnostics.Process.CloseMainWindow%2A> sends a request to close to the main window, which, in a well-formed application, closes child windows and revokes all running message loops for the application. The request to exit the process by calling <xref:System.Diagnostics.Process.CloseMainWindow%2A> does not force the application to quit. The application can ask for user verification before quitting, or it can refuse to quit. To force the application to quit, use the <xref:System.Diagnostics.Process.Kill%2A> method. The behavior of <xref:System.Diagnostics.Process.CloseMainWindow%2A> is identical to that of a user closing an application's main window using the system menu. Therefore, the request to exit the process by closing the main window does not force the application to quit immediately.
708+
When a process is executing, its message loop is in a wait state. The message loop executes every time a Windows message is sent to the process by the operating system. Calling <xref:System.Diagnostics.Process.CloseMainWindow%2A> sends a request to close the main window, which, in a well-formed application, closes child windows and revokes all running message loops for the application. The request to exit the process by calling <xref:System.Diagnostics.Process.CloseMainWindow%2A> does not force the application to quit. The application can ask for user verification before quitting, or it can refuse to quit. To force the application to quit, use the <xref:System.Diagnostics.Process.Kill%2A> method. The behavior of <xref:System.Diagnostics.Process.CloseMainWindow%2A> is identical to that of a user closing an application's main window using the system menu. Therefore, the request to exit the process by closing the main window does not force the application to quit immediately.
709709

710710
Data edited by the process or resources allocated to the process can be lost if you call <xref:System.Diagnostics.Process.Kill%2A>. <xref:System.Diagnostics.Process.Kill%2A> causes an abnormal process termination, and should be used only when necessary. <xref:System.Diagnostics.Process.CloseMainWindow%2A> enables an orderly termination of the process and closes all windows, so it is preferable for applications with an interface. If <xref:System.Diagnostics.Process.CloseMainWindow%2A> fails, you can use <xref:System.Diagnostics.Process.Kill%2A> to terminate the process. <xref:System.Diagnostics.Process.Kill%2A> is the only way to terminate processes that do not have graphical interfaces.
711711

@@ -2065,10 +2065,11 @@ There are problems accessing the performance counter API's used to get process i
20652065
The `Kill` method forces a termination of the process, while <xref:System.Diagnostics.Process.CloseMainWindow%2A> only requests a termination.
20662066
When a process with a graphical interface is executing, its message loop is in a wait state.
20672067
The message loop executes every time a Windows message is sent to the process by the operating system.
2068-
Calling <xref:System.Diagnostics.Process.CloseMainWindow%2A> sends a request to close to the main window, which, in a well-formed application, closes child windows and revokes all running message loops for the application.
2068+
Calling <xref:System.Diagnostics.Process.CloseMainWindow%2A> sends a request to close the main window, which, in a well-formed application, closes child windows and revokes all running message loops for the application.
20692069
The request to exit the process by calling <xref:System.Diagnostics.Process.CloseMainWindow%2A> does not force the application to quit.
20702070
The application can ask for user verification before quitting, or it can refuse to quit.
20712071
To force the application to quit, use the `Kill` method.
2072+
20722073
The behavior of <xref:System.Diagnostics.Process.CloseMainWindow%2A> is identical to that of a user closing an application's main window using the system menu.
20732074
Therefore, the request to exit the process by closing the main window does not force the application to quit immediately.
20742075

@@ -2129,11 +2130,7 @@ You cannot cause processes on remote computers to exit. You can only view inform
21292130

21302131
-or-
21312132

2132-
The process is terminating.
2133-
2134-
-or-
2135-
2136-
The associated process is a Win16 executable.</exception>
2133+
The process is terminating.</exception>
21372134
<exception cref="T:System.NotSupportedException">You are attempting to call <see cref="M:System.Diagnostics.Process.Kill" /> for a process that is running on a remote computer. The method is available only for processes running on the local computer.</exception>
21382135
<exception cref="T:System.InvalidOperationException">The process has already exited.
21392136

@@ -2178,11 +2175,7 @@ You cannot cause processes on remote computers to exit. You can only view inform
21782175

21792176
-or-
21802177

2181-
The process is terminating.
2182-
2183-
-or-
2184-
2185-
The associated process is a Win16 executable.</exception>
2178+
The process is terminating.</exception>
21862179
<exception cref="T:System.NotSupportedException">You are attempting to call <see cref="M:System.Diagnostics.Process.Kill" /> for a process that is running on a remote computer. The method is available only for processes running on the local computer.</exception>
21872180
<exception cref="T:System.InvalidOperationException">The process has already exited.
21882181

0 commit comments

Comments
 (0)