Platform SDK: Removable Storage Manager |
The WaitForNtmsNotification function waits for the next object change notification.
DWORD WINAPI WaitForNtmsNotification( HANDLE hNotification, LPNTMS_NOTIFICATIONINFORMATION lpNotificationInformation, DWORD dwTimeout );
Value | Meaning |
---|---|
ERROR_DATABASE_FAILURE | The database query or update failed. |
ERROR_INVALID_HANDLE | The value specified in the hNotification parameter is invalid or NULL. |
ERROR_NO_DATA | Notification pipe failed. Attempt to set up notification again. |
ERROR_NOT_CONNECTED | Unable to connect to the RSM service. |
ERROR_TIMEOUT | The time-out event expired. |
ERROR_SUCCESS | The function was successfully executed. |
Windows NT/2000: Requires Windows 2000.
Header: Declared in Ntmsapi.h.
Library: Use Ntmsapi.lib.
Database Notification Functions, CloseNtmsNotification, OpenNtmsNotification