Platform SDK: Removable Storage Manager

CloseNtmsNotification

The CloseNtmsNotification function closes the specified open notification channel.

DWORD WINAPI CloseNtmsNotification(
  HANDLE hNotification
);

Parameters

hNotification
Notification handle generated by the OpenNtmsNotification function.

Return Values

Value Meaning
ERROR_DATABASE_FAILURE The database query or update failed.
ERROR_INVALID_HANDLE The value specified in the hSession parameter is invalid or NULL.
ERROR_NOT_CONNECTED Unable to connect to the RSM service.
ERROR_SUCCESS The function was successful.

Remarks

If the CloseNtmsNotification function is called while there is an outstanding call to the WaitForNtmsNotification function, an error returns.

Requirements

  Windows NT/2000: Requires Windows 2000.
  Header: Declared in Ntmsapi.h.
  Library: Use Ntmsapi.lib.

See Also

Database Notification Functions, OpenNtmsNotification, WaitForNtmsNotification