EndNtmsDeviceChangeDetection function (ntmsapi.h)
[Removable Storage Manager is no longer available as of Windows 7 and Windows Server 2008 R2.]
The EndNtmsDeviceChangeDetection function ends device change detection for any target devices specified using the SetNtmsDeviceChangeDetection function and closes the change detection handle.
Syntax
DWORD EndNtmsDeviceChangeDetection(
[in] HANDLE hSession,
[in] HANDLE DetectHandle
);
Parameters
[in] hSession
Handle to the session returned by the OpenNtmsSession function
[in] DetectHandle
Device change detection handle returned by the BeginNtmsDeviceChangeDetection function.
Return value
This function returns one of the following values.
Value | Meaning |
---|---|
|
The session handle or detection handle is not valid. |
|
The operator request has been canceled. |
Remarks
Closing the Removable Storage Manager session also ends all device change detection sessions.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows XP [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | ntmsapi.h |
Library | Ntmsapi.lib |
DLL | Ntmsapi.dll |