CloseNtmsSession

[This is preliminary documentation and subject to change.]

The CloseNtmsSession function closes the specified RSM session.

DWORD WINAPI CloseNtmsSession(
  HANDLE hSession
);
 

Parameters

hSession
Handle to the session returned by the OpenNtmsSession function.

Return Values

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.

Remarks

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.

QuickInfo

  Windows NT: Requires version 5.0 or later.
  Windows: Unsupported.
  Windows CE: Unsupported.
  Header: Declared in ntmsapi.h.
  Import Library: Use ntmsapi.lib.

See Also

Session Management Functions, OpenNtmsSession