Platform SDK: Removable Storage Manager

EndNtmsDeviceChangeDetection

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
);

Parameters

hSession
The handle generated by the OpenNtmsSession function
hDetectHandle
Device change detection handle

Return Values

Value Meaning
ERROR_INVALID_HANDLE Invalid Session or Detection handle.
ERROR_SUCCESS The operator request has been canceled.

Requirements

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

See Also

SetNtmsDeviceChangeDetection, BeginNtmsDeviceChangeDetection