CmCloseSession (Compact 2013)
3/26/2014
This API closes the connection session.
Syntax
CM_RESULT CmCloseSession(
CM_SESSION_HANDLE hSession
);
Parameters
- hSession
[in] A pointer to a CM_SESSION_HANDLE.
Return Value
Value |
Description |
---|---|
CMRE_SUCCESS |
The operation completed successfully. |
CMRE_INVALID_SESSION |
The hSession is not valid. |
Remarks
Applications that use Winsock and WinInet implicitly close sessions as a result of closing the SOCKET or releasing the HINTERNET handle.
CMRE_INVALID_SESSION is returned when an attempt is made to close a session that has been previously implicitly closed.
Applications that associate a CM session with SOCKET or HINTERNET must close the session explicitly using this function.
Requirements
Header |
cmnet.h |
Library |
cmnet.lib |