220.127.116.11 EcDoDisconnect Method (Opnum 1)
The EcDoDisconnect method closes a Session Context with the server. The server destroys the Session Context and releases all associated server state, objects, and resources that are associated with the Session Context. This call requires an active session context handle from the EcDoConnectEx method, as specified in section 18.104.22.168.
long __stdcall EcDoDisconnect( [in, out, ref] CXH * pcxh );
pcxh: A session context handle. On input, this parameter is the session context handle of the Session Context that the client is disconnecting. On output, the server MUST set the pcxh parameter to a zero value. Setting the value to zero instructs the RPC layer of the server to destroy the RPC context handle.
Return Values: If the method succeeds, the return value is 0. If the method fails, the return value is an implementation-specific error code.
Exceptions Thrown: No exceptions are thrown beyond those thrown by the underlying RPC protocol as specified in [MS-RPCE].