Platform SDK: Removable Storage Manager |
The DeleteNtmsRequest function deletes a request or a list of requests from the RSM database. Library or operator requests that are in a completed, failed, refused, or canceled state are removed. Submitted requests, queued requests, waiting requests, and in progress requests cannot be deleted.
DWORD WINAPI DeleteNtmsRequest( HANDLE hSession, LPNTMS_GUID lpRequestId, DWORD dwType, DWORD dwCount );
Value | Meaning |
---|---|
ERROR_SUCCESS | The function executed successfully. |
ERROR_INVALID_PARAMETER | Invalid type identifier. |
ERROR_INVALID_HANDLE | Bad or missing session handle. |
ERROR_NOT_ENOUGH_MEMORY | Memory allocation failure during processing. |
ERROR_DATABASE_FAILURE | Database is inaccessible or damaged. |
ERROR_DATABASE_FULL | Database is full. |
ERROR_ACCESS_DENIED | NTMS_MODIFY_ACCESS to the library is denied. Other security errors may have occurred, but these other security errors indicate a security subsystem error. |
An error is not returned if a request or list of requests is not found.
Windows NT/2000: Requires Windows 2000.
Header: Declared in Ntmsapi.h.
Library: Use Ntmsapi.lib.