Platform SDK: Removable Storage Manager

BeginNtmsDeviceChangeDetection

The BeginNtmsDeviceChangeDetection function allows the application to begin a device change detection session. The application can then set the stand-alone libraries for which media change detection is required using the SetNtmsDeviceChangeDetection function. The Removable Storage Manager continues to detect changes for the devices specified until the change detection session is closed using the EndNtmsDeviceChangeDetection function.

DWORD WINAPI BeginNtmsDeviceChangeDetection(
  HANDLE hSession,
  LPHANDLE lpDetectHandle
);

Parameters

hSession
Handle to the session returned by the OpenNtmsSession function.
lpDetectHandle
Pointer to variable that receives the device change detection handle.

Return Values

Value Meaning
ERROR_INVALID_HANDLE Invalid session.
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, EndNtmsDeviceChangeDetection