Compartir a través de


EndNtmsDeviceChangeDetection Function

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

Parameters

Return Value

This function returns one of the following values.

Value Meaning
ERROR_INVALID_HANDLE

The session handle or detection handle is not valid.

ERROR_SUCCESS

The operator request has been canceled.

 

Remarks

Closing the Removable Storage Manager session also ends all device change detection sessions.

Requirements

Minimum supported client

Windows 2000 Professional

Minimum supported server

Windows 2000 Server

End of client support

Windows Vista

End of server support

Windows Server 2008

Header

Ntmsapi.h

Library

Ntmsapi.lib

DLL

Ntmsapi.dll

See Also

Change Detection Functions

BeginNtmsDeviceChangeDetection

SetNtmsDeviceChangeDetection

 

 

Send comments about this topic to Microsoft

Build date: 6/9/2011