[This is preliminary documentation and subject to change.]
The CloseNtmsSession function closes the specified RSM session.
DWORD WINAPI CloseNtmsSession(
HANDLE hSession
);
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: Requires version 5.0 or later.
Windows: Unsupported.
Windows CE: Unsupported.
Header: Declared in ntmsapi.h.
Import Library: Use ntmsapi.lib.
Session Management Functions, OpenNtmsSession