4.4 Disconnect from the Server

The client has already established a Session Context with the server and has a valid session context handle. For more information, see section 4.1.

The client is exiting and requests to destroy the Session Context on the server. The client calls the EcDoDisconnect method, as described in section 3.1.4.3, using the session context handle that was returned from the EcDoConnectEx method call, as described in section 3.1.4.1.

pcxh: Pointer to session context handle value, which is 0x00001234.

The server processes the EcDoDisconnect method request. The server verifies that the session context handle is for a valid Session Context for this user. The server destroys the Session Context and invalidates the session context handle. The server returns the following output values.

pcxh: Value at session context handle pointer is 0x00000000.

Return Value: 0x00000000