网站首页  词典首页

请输入您要查询的函数:

 

术语 swapntmsmedia
释义 SwapNtmsMedia
语法:
C++
DWORD SwapNtmsMedia(
__in HANDLE hSession,
__in LPNTMS_GUID lpMediaId1,
__in LPNTMS_GUID lpMediaId2
);
SwapNtmsMedia功能
[移动存储管理不再作为Windows 7和Windows服务器2008 R2提供。]
交换功能的SwapNtmsMedia与两个指定LMIDs相关的方面。指定LMIDs必须在相同的媒体池中。
参数
hSession [in]
处理由OpenNtmsSession函数返回的会议。
lpMediaId1 [in]
独特的标识符(LMID)逻辑媒体上。
lpMediaId2 [in]
独特的标识符(LMID)逻辑媒体上。
返回值
这个函数返回下列值之一。
ValueMeaning
ERROR_ACCESS_DENIEDNTMS_MODIFY_ACCESS要么媒体的媒体池被拒绝。其他安全错误也是可能的,但它们都将意味着安全子系统的错误。
ERROR_BAD_FORMATNo媒体标签库承认媒体标签。
ERROR_DATABASE_FAILUREThe数据库无法访问或已损坏。
ERROR_DATABASE_FULLThe数据库已满。
ERROR_INVALID_HANDLEThe会话句柄丢失或无效。
ERROR_INVALID_MEDIAAt至少有一名媒体的ID是无效的。
ERROR_INVALID_MEDIA_POOLOne或多个媒体的逻辑媒体池是无效的。
ERROR_INVALID_PARAMETERAt至少有一个媒体标识符是丢失。
ERROR_NOT_ENOUGH_MEMORYAn分配在处理过程中出现故障。
ERROR_SUCCESSThe功能是成功的。
备注
该SwapNtmsMedia函数用于更新,而不会影响应用程序的物理媒体。
为LMIDs媒体不能把这个职能成功使用。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
客户端 支持 Windows Vista
服务器 支持 Windows Server 2008
HeaderNtmsapi.h
LibraryNtmsapi.lib
DLLNtmsapi.dll
参见
媒体服务函数
AllocateNtmsMedia
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月30日
==英文原文==SwapNtmsMedia Function
[ Removable Storage Manager is no longer available as of Windows 7 and Windows Server 2008 R2.]
The SwapNtmsMedia function swaps the sides associated with the two specified LMIDs. The specified LMIDs must be in the same media pool.
Syntax
C++
DWORD SwapNtmsMedia(
__in HANDLE hSession,
__in LPNTMS_GUID lpMediaId1,
__in LPNTMS_GUID lpMediaId2
);
Parameters
hSession [in]
Handle to the session returned by the OpenNtmsSession function.
lpMediaId1 [in]
Unique identifier of a piece of logical media (LMID).
lpMediaId2 [in]
Unique identifier of a piece of logical media (LMID).
Return Value
This function returns one of the following values.
ValueMeaning
ERROR_ACCESS_DENIEDNTMS_MODIFY_ACCESS to either media's media pool is denied. Other security errors are also possible, but they would indicate a security subsystem error.
ERROR_BAD_FORMATNo media label library recognizes the media label.
ERROR_DATABASE_FAILUREThe database is inaccessible or damaged.
ERROR_DATABASE_FULLThe database is full.
ERROR_INVALID_HANDLEThe session handle is missing or is not valid.
ERROR_INVALID_MEDIAAt least one of the media IDs is not valid.
ERROR_INVALID_MEDIA_POOLOne or more media pools for the logical media are not valid.
ERROR_INVALID_PARAMETERAt least one media identifier is missing.
ERROR_NOT_ENOUGH_MEMORYAn allocation failure occurred during processing.
ERROR_SUCCESSThe function was successful.

Remarks
The SwapNtmsMedia function is used to update physical media without affecting the application.
The media for both LMIDs must not be in use for this function to succeed.
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
Media Services Functions
AllocateNtmsMedia
Send comments about this topic to Microsoft
Build date: 7/30/2009
==原始网址==http://msdn.microsoft.com/en-us/library/bb540749(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:17:43