网站首页  词典首页

请输入您要查询的函数:

 

术语 getntmsuioptions
释义 GetNtmsUIOptions
语法:
C++
DWORD GetNtmsUIOptions(
__in HANDLE hSession,
__in const LPNTMS_GUID lpObjectId,
__in DWORD dwType,
__out LPTSTR lpszDestination,
__inout LPDWORD lpdwSize
);
GetNtmsUIOptions功能
[移动存储管理不再作为Windows 7和Windows服务器2008 R2提供。]
该GetNtmsUIOptions功能获得了计算机的用户界面的指定类型的被给定对象的指示名单。 一个GetNtmsUIOptions调用返回的目的地由lpObjectId和却提示参数确定的实例列表。
如果在指定的实例名单上没有目的地,该函数返回ERROR_SUCCESS随着为零列表的长度。
参数
hSession [in]
处理由OpenNtmsSession函数返回的会议。
lpObjectId [in]
唯一标识符的用户界面被重定向对象。该对象必须是一个容器,可以是事件的来源。该对象可以是一个应用(1安装应用程序触发请求),库(一开门请求,以响应弹出)或计算机(所有用户界面有关的计算机)。
要指定计算机容器设置lpObjectId指针指向一个可移动存储管理器的计算机对象缓冲区的GUID。要指定特定的库设置为指向与库的GUID缓冲区。要指定一个应用程序,传递一个NULL指针。应用程序的标识是由在hSession使用的会话。请注意,应用程序可以同时打开多个会话。在这种情况下,该值设置只适用于hSession会议。
dwType [in]
此参数可以有以下值之一。
ValueMeaning
NTMS_UITYPE_INFOUI消息,它们提供的信息。其中包括工作队列项指示进度。例如,安装要求。
NTMS_UITYPE_REQUI消息的请求。其中包括经营者要求处理媒体。例如,要求注入新的媒体。
NTMS_UITYPE_ERRUI messages that give error information.其中包括运营商,相关的错误通知的要求。例如,要求清理的驱动器。
lpszDestination [out]
多字符串,返回机器名称的用户界面是被重定向。这个参数不能为NULL。
lpdwSize [ in , out ]
大小的目标字符串,在TCHARs。
返回值
这个函数返回下列值之一。
ValueMeaning
ERROR_ACCESS_DENIEDAccess到一个或多个罗申对象被拒绝。
ERROR_INSUFFICIENT_BUFFERThe缓冲区大小lpdwSize指定的目的地太小发现。该函数返回lpdwSize实际大小。
ERROR_INVALID_HANDLEThe会话句柄丢失或无效。
ERROR_INVALID_PARAMETERThe lpdwSize或lpszDestination参数为NULL,或者lpObjectId不是有效的容器,或者却提示不是有效的三个值之一。
ERROR_NOT_ENOUGH_MEMORYAn分配在处理过程中出现故障。
ERROR_OBJECT_NOT_FOUNDThe由lpObjectId指定的GUID不是任何一台计算机或库对象在数据库中的GUID。
ERROR_SUCCESSThe功能是成功的。
备注
一个GetNtmsUIOptions调用返回一个目的地由lpObjectId和却提示参数确定的特定实例的列表。
NTMS_UITYPE_INFONTMS_UITYPE_REQNTMS_UITYPE_ERR
ApplicationDisplay工作项目对于本application.Display操作界面生成的要求,由本application.Undefined所采取的行动产生的经营项目的进度要求,工作界面。应用程序不能导致这样的错误事件排序。
LibraryDisplay工作项与此同此与此相关的错误library.Display库用户界面相关的要求library.Display用户界面相关的工作项目上取得进展的UI。
ComputerDisplay信息在这个界面在这machine.Display丹参运行实例的要求,在这种类型的错误实例RSM.Display式用户界面在这个界面丹参实例。
要求:
最低支持client-Windows XP
最低支持serverWindows服务器2003
客户端 支持 Windows Vista
服务器 支持 Windows Server 2008
HeaderNtmsapi.h
LibraryNtmsapi.lib
DLLNtmsapi.dll
Unicode和ANSI namesGetNtmsUIOptionsW(Unicode)和GetNtmsUIOptionsA(ANSI)的
参见
库控制功能
SetNtmsUIOptions
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月30日
==英文原文==GetNtmsUIOptions Function
[ Removable Storage Manager is no longer available as of Windows 7 and Windows Server 2008 R2.]
The GetNtmsUIOptions function obtains the list of computer names to which the specified type of user interface is being directed for the given object. A call to GetNtmsUIOptions returns the list of destinations for the instance determined by the lpObjectId and dwType parameters.
If there are no destinations in the list for the specified instance, the function returns ERROR_SUCCESS along with a list length of zero.
Syntax
C++
DWORD GetNtmsUIOptions(
__in HANDLE hSession,
__in const LPNTMS_GUID lpObjectId,
__in DWORD dwType,
__out LPTSTR lpszDestination,
__inout LPDWORD lpdwSize
);
Parameters
hSession [in]
Handle to the session returned by the OpenNtmsSession function.
lpObjectId [in]
Unique identifier of the object whose UI is being redirected. The object must be a container that can be a source for events. The object can be either be an application (a mount request triggered by the application), a library (a door open request in response to an eject) or a computer (all UI pertaining to the computer).
To specify the computer container set the lpObjectId pointer to point to a buffer with the Removable Storage Manager's computer object GUID. To specify a particular library set it to point to a buffer with the library's GUID. To specify an application, pass in a NULL pointer. The identity of the application is determined by the session used in hSession. Note that an application can have multiple sessions open simultaneously. In this case, the value set applies only to the hSession session.
dwType [in]
This parameter can have one of the following values.
ValueMeaning
NTMS_UITYPE_INFOUI messages that provide information. These include the work queue items that indicate progress. For example, mount requests.
NTMS_UITYPE_REQUI messages that are requests. These include the operator requests that handle media. For example, a request to inject new media.
NTMS_UITYPE_ERRUI messages that give error information. These include operator requests that are related to error notification. For example, a request to clean the drive.

lpszDestination [out]
Multi-string that returns the names of the machines to which the UI is being redirected. This parameter cannot be NULL.
lpdwSize [in, out]
Size of the destination string, in TCHARs.
Return Value
This function returns one of the following values.
ValueMeaning
ERROR_ACCESS_DENIEDAccess to one or more RSM objects is denied.
ERROR_INSUFFICIENT_BUFFERThe buffer size specified by lpdwSize is too small for the destinations found. The function returns the actual size in lpdwSize.
ERROR_INVALID_HANDLEThe session handle is missing or is not valid.
ERROR_INVALID_PARAMETERThe lpdwSize or lpszDestination parameter is NULL, or lpObjectId is not a valid container, or dwType is not one of the three valid values.
ERROR_NOT_ENOUGH_MEMORYAn allocation failure occurred during processing.
ERROR_OBJECT_NOT_FOUNDThe GUID specified by lpObjectId is not the GUID of any computer or library object in the database.
ERROR_SUCCESSThe function was successful.

Remarks
A call to GetNtmsUIOptions returns a list of destinations for a particular instance determined by the lpObjectId and dwType parameters.
NTMS_UITYPE_INFONTMS_UITYPE_REQNTMS_UITYPE_ERR
ApplicationDisplay work item progress UI for work items generated by this application.Display operator request UI for operator requests generated by actions taken by this application.Undefined. Applications cannot cause this sort of error event.
LibraryDisplay work item progress UI for work items associated with this library.Display UI for requests associated with this library.Display UI for errors associated with this library.
ComputerDisplay informational UI in this instance of RSM running on this machine.Display a request-type UI in this instance of RSM.Display error-type UI in this instance of RSM.

Requirements
Minimum supported clientWindows XP
Minimum supported serverWindows Server 2003
End of client supportWindows Vista
End of server supportWindows Server 2008
HeaderNtmsapi.h
LibraryNtmsapi.lib
DLLNtmsapi.dll
Unicode and ANSI namesGetNtmsUIOptionsW (Unicode) and GetNtmsUIOptionsA (ANSI)
See Also
Library Control Functions
SetNtmsUIOptions
Send comments about this topic to Microsoft
Build date: 7/30/2009
==原始网址==http://msdn.microsoft.com/en-us/library/bb540680(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 11:28:37