术语 | setntmsrequestorder |
释义 | SetNtmsRequestOrder 语法: C++ DWORD SetNtmsRequestOrder( __in HANDLE hSession, __in LPNTMS_GUID lpRequestId, __in DWORD dwOrderNumber ); SetNtmsRequestOrder功能 [移动存储管理不再作为Windows 7和Windows服务器2008 R2提供。] 该SetNtmsRequestOrder函数设置指定的要求将在库队列处理顺序。 参数 hSession [in] 处理由OpenNtmsSession函数返回的会议。 lpRequestId [in] 唯一标识符库的要求。 dwOrderNumber [in] 为了使请求将在队列中处理。 返回值 这个函数返回下列值之一。 ValueMeaning ERROR_ACCESS_DENIEDNTMS_CONTROL_ACCESS计算机被拒绝。其他安全错误也是可能的,但它们都将意味着安全子系统的错误。 Windows XP/2000操作系统:没有访问权限是必需的。 ERROR_DATABASE_FAILUREThe数据库无法访问或已损坏。 ERROR_INVALID_HANDLEThe会话句柄丢失或无效。 ERROR_INVALID_PARAMETERThe库的要求标识符是丢失。 ERROR_OBJECT_NOT_FOUNDA与指定标识符请求对象无法找到。 ERROR_SUCCESSThe功能是成功的。 备注 目前NTMS_LM_MOUNT请求进行排序使用的订单号码。 阶数的SetNtmsRequestOrder功能设置是特定类型的请求的类型,因为在一个预先确定的顺序处理。例如,NTMS_LM_DISMOUNT请求被处理之前,一NTMS_LM_MOUNT要求。在一个特定的类的请求队列可以订购,但是。较低的命令请求,首先处理,例如,1是第一个请求处理的,2是一个请求处理,等等。 为了处理一个请求立即,应用程序可以将订单号为1。推迟处理,应用程序应设置以数量相当大的数目或0xFFFFFFFF。请求的,目前有一零订单编号订单号,不能更改。 要求: 最低支持:client-Windows 2000专业版 最低支持server-Windows 2000服务器 客户端 支持 Windows Vista 服务器 支持 Windows Server 2008 HeaderNtmsapi.h LibraryNtmsapi.lib DLLNtmsapi.dll 参见 库控制功能 GetNtmsRequestOrder 如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com) 生成日期:2009年7月30日 ==英文原文==SetNtmsRequestOrder Function [ Removable Storage Manager is no longer available as of Windows 7 and Windows Server 2008 R2.] The SetNtmsRequestOrder function sets the order that the specified request will be processed in the library queue. Syntax C++ DWORD SetNtmsRequestOrder( __in HANDLE hSession, __in LPNTMS_GUID lpRequestId, __in DWORD dwOrderNumber ); Parameters hSession [in] Handle to the session returned by the OpenNtmsSession function. lpRequestId [in] Unique identifier of a library request. dwOrderNumber [in] Order that the request will be processed in the queue. Return Value This function returns one of the following values. ValueMeaning ERROR_ACCESS_DENIEDNTMS_CONTROL_ACCESS to the computer is denied. Other security errors are also possible, but they would indicate a security subsystem error. Windows XP/2000: No access rights are required. ERROR_DATABASE_FAILUREThe database is inaccessible or damaged. ERROR_INVALID_HANDLEThe session handle is missing or is not valid. ERROR_INVALID_PARAMETERThe library request identifier is missing. ERROR_OBJECT_NOT_FOUNDA request object with the specified identifier cannot be found. ERROR_SUCCESSThe function was successful. Remarks Currently NTMS_LM_MOUNT requests are sorted using the order number. The order number set by the SetNtmsRequestOrder function is specific to the type of request because the types are processed in a predetermined order. For example, an NTMS_LM_DISMOUNT request is processed prior to an NTMS_LM_MOUNT request. Within a specific class of requests the queue can be ordered, however. The lower ordered requests are processed first; for example, 1 is the first request processed, 2 is the next request processed, and so forth. To process a request immediately, an application can set the order number to 1. To defer processing, an application should set the order number to a very large number or 0xFFFFFFFF. The order number of a request, which currently has an order number of zero, cannot be changed. 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 See Also Library Control Functions GetNtmsRequestOrder Send comments about this topic to Microsoft Build date: 7/30/2009 ==原始网址==http://msdn.microsoft.com/en-us/library/bb540746(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。