IMsTscAxEvents::OnDisconnected (Windows CE 5.0)
This method is called when the client control has been disconnected from the terminal server.
VOID OnDisconnected(long discReason);
Parameters
discReason
[in] Specifies the reason for the disconnection.The following table shows possible values for this parameter.
Value Description 0 No information is available. 1 Local disconnection. (Not an error code.) 2 Remote disconnection by user. (Not an error code.) 3 Remote disconnection by server. (Not an error code.) 260 DNS name lookup failure. 262 Out of memory. 264 Connection timed out. 516 Winsock socket connect failure. 518 Out of memory. 520 "Host not found" error. 772 Winsock send call failure. 774 Out of memory. 776 Invalid IP address specified. 1028 Winsock recv call failure. 1030 Invalid security data. 1032 Internal error. 1286 Invalid encryption method specified. 1288 DNS lookup failed. 1540 Failed to find the requested server, device, or host. 1542 Invalid server security data. 1544 Internal timer error. 1796 Timeout occurred. 1798 Failed to unpack server certificate. 2052 Bad IP address specified. 2056 Internal security error. 2308 Socket closed. 2310 Internal security error. 2312 Licensing timeout. 2566 Internal security error. 2822 Encryption error. 3078 Decryption error.
Return Values
None.
Requirements
OS Versions: Windows CE .NET 4.0 and later.
Header: Discodlg.h. Mstsax.idl.
Link Library: Mstsax.lib.
See Also
Send Feedback on this topic to the authors