术语 | cancelntmslibraryrequest |
释义 | CancelNtmsLibraryRequest 语法: C++ DWORD CancelNtmsLibraryRequest( __in HANDLE hSession, __in LPNTMS_GUID lpRequestId ); CancelNtmsLibraryRequest功能 [移动存储管理不再作为Windows 7和Windows服务器2008 R2提供。] 该CancelNtmsLibraryRequest功能取消优秀罗申美如向CleanNtmsDrive函数调用请求。如果库忙,罗申队列取消和返回成功。 参数 hSession [in] 处理由OpenNtmsSession函数返回的会议。 lpRequestId [in] 库的要求,独特的标识符被取消。 要检索现有库的请求列表,使用EnumerateNtmsObject功能。 返回值 这个函数返回下列值之一。 ValueMeaning ERROR_ACCESS_DENIEDOnly一个丹参服务器管理员可以取消库的要求。此错误也返回如果请求,目前正在处理的,不能被删除。 ERROR_INVALID_HANDLEThe会话句柄丢失或无效。 ERROR_NOT_ENOUGH_MEMORYThere是在处理过程中分配失败。 ERROR_OBJECT_NOT_FOUNDThe库的要求对象ID找不到。如果出现此错误请求完成之前,取消或发出请求时,身份证无效指定。 ERROR_SUCCESSThe库的请求已被排队取消。 要求: 最低支持:client-Windows 2000专业版 最低支持server-Windows 2000服务器 客户端 支持 Windows Vista 服务器 支持 Windows Server 2008 HeaderNtmsapi.h LibraryNtmsapi.lib DLLNtmsapi.dll 参见 库控制功能 EnumerateNtmsObject 如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com) 生成日期:2009年7月30日 ==英文原文==CancelNtmsLibraryRequest Function [ Removable Storage Manager is no longer available as of Windows 7 and Windows Server 2008 R2.] The CancelNtmsLibraryRequest function cancels outstanding RSM requests, such as calls to the CleanNtmsDrive function. If the library is busy, RSM queues the cancellation and returns success. Syntax C++ DWORD CancelNtmsLibraryRequest( __in HANDLE hSession, __in LPNTMS_GUID lpRequestId ); Parameters hSession [in] Handle to the session returned by the OpenNtmsSession function. lpRequestId [in] Unique identifier of the library request to be canceled. To retrieve the list of existing library requests, use the EnumerateNtmsObject function. Return Value This function returns one of the following values. ValueMeaning ERROR_ACCESS_DENIEDOnly an administrator of the RSM server can cancel library requests. This error is also returned if the request is currently being handled and cannot be deleted. ERROR_INVALID_HANDLEThe session handle is missing or is not valid. ERROR_NOT_ENOUGH_MEMORYThere was an allocation failure during processing. ERROR_OBJECT_NOT_FOUNDThe library request object ID was not found. This error occurs if the request is completed prior to issuing the cancel or when a request ID that is not valid is specified. ERROR_SUCCESSThe library request has been queued for cancellation. 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 EnumerateNtmsObject Send comments about this topic to Microsoft Build date: 7/30/2009 ==原始网址==http://msdn.microsoft.com/en-us/library/bb525477(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。