Platform SDK: Removable Storage Manager |
The CloseNtmsSession function closes the specified RSM session.
DWORD WINAPI CloseNtmsSession( HANDLE hSession );
Value | Meaning |
---|---|
ERROR_CONNECTION_UNAVAIL | Connection to the RSM server or domain is not available. |
ERROR_INVALID_HANDLE | The value specified in the hSession parameter is invalid or NULL. |
The CloseNtmsSession function releases all resources. Use of a closed session handle returns an error code.
If a call to the CloseNtmsSession function occurs while an application has an outstanding synchronous request (for example, a mount or dismount request), the request is unwound and canceled.
Windows NT/2000: Requires Windows 2000.
Header: Declared in Ntmsapi.h.
Library: Use Ntmsapi.lib.