网站首页  词典首页

请输入您要查询的函数:

 

术语 submitntmsoperatorrequest
释义 SubmitNtmsOperatorRequest
语法:
C++
DWORD SubmitNtmsOperatorRequest(
__in HANDLE hSession,
__in DWORD dwRequest,
__in LPCTSTR lpMessage,
__in LPNTMS_GUID lpArg1Id,
__in LPNTMS_GUID lpArg2Id,
__out LPNTMS_GUID lpRequestId
);
SubmitNtmsOperatorRequest功能
[移动存储管理不再作为Windows 7和Windows服务器2008 R2提供。]
函数的SubmitNtmsOperatorRequest丹参经营者提出的要求。
参数
hSession [in]
处理由OpenNtmsSession函数返回的会议。
dwRequest [in]
类型的操作要求。此参数可以是下列值之一。
ValueMeaning
NTMS_OPREQ_CLEANERRSM发送一个操作员请求插入操作时,一个干净的排队,没有清洁的可用驱动器清洁。该lpArg1Id参数可以是一个库或插槽标识符。
要求NTMS_CONTROL_ACCESS库。
Windows XP/2000操作系统:没有访问权限是必需的。
NTMS_OPREQ_DEVICESERVICEAn申请或罗申发送驱动器服务营办商的要求时,更换设备或驱动器遇到问题。在lpArg1Id参数指定的设备需要的服务。此参数可以是一个iedoor,库,物理媒体,或驱动器标识符。
要求NTMS_CONTROL_ACCESS库。
Windows XP/2000操作系统:没有访问权限是必需的。
NTMS_OPREQ_MESSAGEApplication消息只。
需要NTMS_USE_ACCESS到计算机。
Windows XP/2000操作系统:没有访问权限是必需的。
NTMS_OPREQ_MOVEMEDIAAn申请或罗申发送一个请求,移动运营商从一个库媒体装入脱机媒体或弹出现有的媒体到脱机库到另一个。在lpArg1Id参数指定必须感动,lpArg2Id参数指定目标库的物理媒体上。
要求NTMS_CONTROL_ACCESS媒体池。
Windows XP/2000操作系统:没有访问权限是必需的。
NTMS_OPREQ_NEWMEDIAAn申请或罗申发送一个新媒体运营商的要求在没有可用的媒体。在lpArg1Id参数指定的媒体池对象和lpArg2Id参数是可选的库标识符其中添加新的媒介。
要求NTMS_CONTROL_ACCESS媒体池。
Windows XP/2000操作系统:没有访问权限是必需的。
lpMessage [in]
可选消息字符串被发送给用户。
lpArg1Id [in]
对象标识为运营商的要求。请参考对什么类型的对象描述在dwRequest参数值的描述必须是通过了此参数。
lpArg2Id [in]
对象标识为运营商的要求。指在对什么类型的对象必须是此参数传递的细节dwRequest参数值的描述。
lpRequestId [out]
指向一个缓冲区,它接收操作者的要求,创建标识符。
返回值
这个函数返回下列值之一。
ValueMeaning
ERROR_ACCESS_DENIEDAccess到一个或多个罗申对象被拒绝。
ERROR_DATABASE_FAILUREThe数据库查询或更新失败。
ERROR_INVALID_HANDLEThe价值hSession参数指定为NULL或无效。
参数值ERROR_INVALID_PARAMETEROne是无效的。
ERROR_NOT_CONNECTEDUnable连接到RSM服务。
ERROR_OBJECT_NOT_FOUNDUnable找到源或目标对象。
ERROR_SUCCESSThe功能是成功的。
备注
该SubmitNtmsOperatorRequest函数提交的操作员请求,并返回该请求(满意或取消)或超时状态(如果经营者不采取行动的要求)。操作员请求用于请求媒体,请求指定的媒介是从一个库到另一个,或要求罗申设备服务。
(在该dwRequest参数)NTMS_OPEREQ_MESSAGE值是请求类型最经常应用。 RSM无法使用NTMS_OPEREQ_MESSAGE。丹参使用需要其他类型的请求。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
客户端 支持 Windows Vista
服务器 支持 Windows Server 2008
HeaderNtmsapi.h
LibraryNtmsapi.lib
DLLNtmsapi.dll
Unicode和ANSI namesSubmitNtmsOperatorRequestW(Unicode)和SubmitNtmsOperatorRequestA(ANSI)的
参见
操作员请求函数
AllocateNtmsMedia
MountNtmsMedia
CancelNtmsOperatorRequest
SatisfyNtmsOperatorRequest
WaitForNtmsOperatorRequest
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月30日
==英文原文==SubmitNtmsOperatorRequest Function
[ 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
C++
DWORD SubmitNtmsOperatorRequest(
__in HANDLE hSession,
__in DWORD dwRequest,
__in LPCTSTR lpMessage,
__in LPNTMS_GUID lpArg1Id,
__in LPNTMS_GUID lpArg2Id,
__out LPNTMS_GUID lpRequestId
);
Parameters
hSession [in]
Handle to the session returned by the OpenNtmsSession function.
dwRequest [in]
Type of operator request. This parameter can be one of the following values.
ValueMeaning
NTMS_OPREQ_CLEANERRSM sends an operator request to insert a cleaner when a clean operation is queued and no cleaner is available to the drive. The lpArg1Id parameter can be either a library or slot identifier.
Requires NTMS_CONTROL_ACCESS to the library.
Windows XP/2000: No access rights are required.
NTMS_OPREQ_DEVICESERVICEAn application or RSM sends an operator request for drive service when a changer device or drive is experiencing problems. The lpArg1Id parameter specifies the device that needs service. This parameter can be an iedoor, library, physical media, or drive identifier.
Requires NTMS_CONTROL_ACCESS to the library.
Windows XP/2000: No access rights are required.
NTMS_OPREQ_MESSAGEApplication message only.
Requires NTMS_USE_ACCESS to the computer.
Windows XP/2000: No access rights are required.
NTMS_OPREQ_MOVEMEDIAAn application or RSM sends an operator request to move media from one library to another for a mount of offline media or to eject existing media to the offline library. The lpArg1Id parameter specifies the piece of physical media that must be moved and the lpArg2Id parameter specifies the target library.
Requires NTMS_CONTROL_ACCESS to the media pool.
Windows XP/2000: No access rights are required.
NTMS_OPREQ_NEWMEDIAAn application or RSM sends an operator request for new media when no media is available. The lpArg1Id parameter specifies the media pool object and the lpArg2Id parameter is the optional library identifier to which to add the new medium.
Requires NTMS_CONTROL_ACCESS to the media pool.
Windows XP/2000: No access rights are required.

lpMessage [in]
Optional message string to be sent to the user.
lpArg1Id [in]
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.
lpArg2Id [in]
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.
lpRequestId [out]
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.
ValueMeaning
ERROR_ACCESS_DENIEDAccess to one or more RSM objects is denied.
ERROR_DATABASE_FAILUREThe database query or update failed.
ERROR_INVALID_HANDLEThe value specified in the hSession parameter is NULL or is not valid.
ERROR_INVALID_PARAMETEROne of the parameter values is not valid.
ERROR_NOT_CONNECTEDUnable to connect to the RSM service.
ERROR_OBJECT_NOT_FOUNDUnable to find the source or destination object.
ERROR_SUCCESSThe 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.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
End of client supportWindows Vista
End of server supportWindows Server 2008
HeaderNtmsapi.h
LibraryNtmsapi.lib
DLLNtmsapi.dll
Unicode and ANSI namesSubmitNtmsOperatorRequestW (Unicode) and SubmitNtmsOperatorRequestA (ANSI)
See Also
Operator Request Functions
AllocateNtmsMedia
MountNtmsMedia
CancelNtmsOperatorRequest
SatisfyNtmsOperatorRequest
WaitForNtmsOperatorRequest
Send comments about this topic to Microsoft
Build date: 7/30/2009
==原始网址==http://msdn.microsoft.com/en-us/library/bb540748(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 13:19:07