Platform SDK: Removable Storage Manager |
The CancelNtmsLibraryRequest function cancels outstanding RSM requests, such as calls to the CleanNtmsDrive function. If the library is busy, RSM queues the CancelNtmsLibraryRequest function and returns success.
DWORD WINAPI CancelNtmsLibraryRequest( HANDLE hSession, LPNTMS_GUID lpRequestId );
Value | Meaning |
---|---|
ERROR_ACCESS_DENIED | Only an administrator of the RSM server can cancel library requests. |
ERROR_OBJECT_NOT_FOUND | The library request object ID was not found. This error occurs if the request is completed prior to issuing the cancel or when an invalid request ID is specified. |
ERROR_SUCCESS | The library request has been queued for cancellation. |
Windows NT/2000: Requires Windows 2000.
Header: Declared in Ntmsapi.h.
Library: Use Ntmsapi.lib.