Platform SDK: Removable Storage Manager |
The OpenNtmsNotification function opens a channel to receive RSM object change notifications for objects of the specified type.
HANDLE WINAPI OpenNtmsNotification( HANDLE hSession, DWORD dwType );
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. |
INVALID_HANDLE_VALUE | The function failed. |
The OpenNtmsNotification function returns a notification handle that you pass to the WaitForNtmsNotification or CloseNtmsNotification functions.
For extended error information, call the Win32 GetLastError function.
Windows NT/2000: Requires Windows 2000.
Header: Declared in Ntmsapi.h.
Library: Use Ntmsapi.lib.
Database Notification Functions, CloseNtmsNotification, WaitForNtmsNotification