Platform SDK: Removable Storage Manager |
The EndNtmsDeviceChangeDetection function ends device change detection for any target devices specified using the SetNtmsDeviceChangeDetection function and closes the change detection handle. Note that closing the Removable Storage Manager session also ends all device change detection sessions.
DWORD WINAPI EndNtmsDeviceChangeDetection( HANDLE hSession, HANDLE hDetectHandle );
Value | Meaning |
---|---|
ERROR_INVALID_HANDLE | Invalid Session or Detection handle. |
ERROR_SUCCESS | The operator request has been canceled. |
Windows NT/2000: Requires Windows 2000.
Header: Declared in Ntmsapi.h.
Library: Use Ntmsapi.lib.
SetNtmsDeviceChangeDetection, BeginNtmsDeviceChangeDetection