SubmitNtmsOperatorRequestA function (ntmsapi.h)
[Removable Storage Manager is no longer available as of Windows 7 and Windows Server 2008 R2.]
The SubmitNtmsOperatorRequest function submits an RSM operator request.
Syntax
DWORD SubmitNtmsOperatorRequestA(
[in] HANDLE hSession,
[in] DWORD dwRequest,
[in] LPCSTR lpMessage,
[in] LPNTMS_GUID lpArg1Id,
[in] LPNTMS_GUID lpArg2Id,
[out] LPNTMS_GUID lpRequestId
);
Parameters
[in] hSession
Handle to the session returned by the OpenNtmsSession function.
[in] dwRequest
Type of operator request. This parameter can be one of the following values.
[in] lpMessage
Optional message string to be sent to the user.
[in] lpArg1Id
Object identifier for the operator request. Refer to the descriptions of the values in the dwRequest parameter for a description of what type of object must be passed for this parameter.
[in] lpArg2Id
Object identifier for the operator request. Refer to the descriptions of the values in the dwRequest parameter for details on what type of object must be passed for this parameter.
[out] lpRequestId
Pointer to a buffer that receives the identifier of the operator request that was created.
Return value
This function returns one of the following values.
Value | Meaning |
---|---|
|
Access to one or more RSM objects is denied. |
|
The database query or update failed. |
|
The value specified in the hSession parameter is NULL or is not valid. |
|
One of the parameter values is not valid. |
|
Unable to connect to the RSM service. |
|
Unable to find the source or destination object. |
|
The function was successful. |
Remarks
The SubmitNtmsOperatorRequest function submits an operator request and returns the status of the request (Satisfied or Canceled) or times out (if the operator does not act upon the request). Operator requests are used to request media, to request that the specified medium be moved from one library to another, or to request RSM device service.
The NTMS_OPEREQ_MESSAGE value (in the dwRequest parameter) is the request type most often used by applications. RSM cannot use NTMS_OPEREQ_MESSAGE. RSM uses the other request types as needed.
Note
The ntmsapi.h header defines SubmitNtmsOperatorRequest as an alias that automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that is not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.
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 |