3.1.4.1.3 MSFT_NetEventSession Stop

The client calls the Stop method of an MSFT_NetEventSession object (section 2.3.1.1) to stop a previously started event session.

 uint32 Stop();

Return Values: The Stop method MUST return ERROR_SUCCESS (0x00000000) on success or a nonzero Win32 error code value if an error occurred. All error values MUST be treated the same.

When the Stop method is called on an MSFT_NetEventSession object, the server MUST check that the specified session is already in the Running state, and if it is not, return a nonzero error code.

The server MUST set the Session State to Stopped.

When there are no event sessions present in the Session Table in the Running state, the server MUST stop the RPC endpoint.