CancelNtmsOperatorRequest function (ntmsapi.h)
[Removable Storage Manager is no longer available as of Windows 7 and Windows Server 2008 R2.]
The CancelNtmsOperatorRequest function cancels the specified RSM operator request.
DWORD CancelNtmsOperatorRequest( [in] HANDLE hSession, [in] LPNTMS_GUID lpRequestId );
Handle to the session returned by the OpenNtmsSession function.
Unique identifier of the operator request to be canceled.
This function returns one of the following values.
||The user that tried to execute this function does not have administrator privileges. Only an administrator of the RSM server can cancel operator requests.|
||The session handle is missing or is not valid.|
||The request identifier is missing.|
||The request has already been completed or canceled.|
||The operator request object ID was not found. This error can occur if the request ID is not valid.|
||The operator request has been canceled.|
|Minimum supported client||Windows XP [desktop apps only]|
|Minimum supported server||Windows Server 2003 [desktop apps only]|