网站首页  词典首页

请输入您要查询的函数:

 

术语 movetontmsmediapool
释义 MoveToNtmsMediaPool
语法:
C++
DWORD MoveToNtmsMediaPool(
__in HANDLE hSession,
__in LPNTMS_GUID lpMediaId,
__in LPNTMS_GUID lpPoolId
);
MoveToNtmsMediaPool功能
[移动存储管理不再作为Windows 7和Windows服务器2008 R2提供。]
该MoveToNtmsMediaPool函数移动从目前的媒体池中指定媒介池指定媒体。
参数
hSession [in]
处理由OpenNtmsSession函数返回的会议。
lpMediaId [in]
唯一标识符的物理媒体上。
lpPoolId [in]
唯一标识符的目的地媒体池。
返回值
这个函数返回下列值之一。
ValueMeaning
ERROR_ACCESS_DENIEDNTMS_CONTROL_ACCESS媒体的媒体池被拒绝。其他安全错误也是可能的,但它们都将意味着安全子系统的错误。
Windows XP/2000操作系统:对源媒体的媒体池或目标媒体池NTMS_MODIFY_ACCESS被拒绝。其他安全错误也是可能的,但它们都将意味着安全子系统的错误。
ERROR_BUSYAt至少有一名在传媒方面正在使用或当前不可用。
ERROR_DATABASE_FAILUREThe数据库无法访问或已损坏。
ERROR_DATABASE_FULLThe数据库已满。
ERROR_INVALID_HANDLEThe会话句柄丢失或无效。
ERROR_INVALID_MEDIA_POOLThe目标媒体池是无效的,媒体池不存在,或在媒体无法识别或import 池只可移动到空闲池。
ERROR_INVALID_MEDIAThe来源媒体或暗示的源媒体池是无效的。
ERROR_INVALID_PARAMETERThe介质ID或媒体池中ID丢失。
ERROR_MEDIA_INCOMPATIBLEThe媒体源类型不同于目标媒体池的媒体类型。
ERROR_NOT_ENOUGH_MEMORYAn分配在处理过程中出现故障。
ERROR_SUCCESSThe功能是成功的。
备注
目的地池在MoveToNtmsMediaPool函数中指定的必须是同一类型的媒体,并兼容安全。
丹参写一个关于媒体标识符媒体后来转入空闲媒体池中的媒体。
阿中有一个已完成的,分配,分区或保留的国家可能不会被移动到空闲媒体池。阿中可能会转移到一个导入池只有在所有介质的分区是在import 国。
Windows Server 2003中:如果自由池源池,NTMS_USE_ACCESS的空闲池和NTMS_CONTROL_ACCESS到目的地池是必需的。否则,NTMS_CONTROL_ACCESS是需要在来源国和目的地池。如果自由是目的池池,NTMS_CONTROL_ACCESS到源池和NTMS_USER_ACCESS的空闲池是必需的。否则,NTMS_CONTROL_ACCESS是需要在来源国和目的地池。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
客户端 支持 Windows Vista
服务器 支持 Windows Server 2008
HeaderNtmsapi.h
LibraryNtmsapi.lib
DLLNtmsapi.dll
参见
媒体服务函数
AllocateNtmsMedia
CreateNtmsMediaPool
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月30日
==英文原文==MoveToNtmsMediaPool Function
[ Removable Storage Manager is no longer available as of Windows 7 and Windows Server 2008 R2.]
The MoveToNtmsMediaPool function moves the specified medium from its current media pool to the specified media pool.
Syntax
C++
DWORD MoveToNtmsMediaPool(
__in HANDLE hSession,
__in LPNTMS_GUID lpMediaId,
__in LPNTMS_GUID lpPoolId
);
Parameters
hSession [in]
Handle to the session returned by the OpenNtmsSession function.
lpMediaId [in]
Unique identifier of a piece of physical media.
lpPoolId [in]
Unique identifier of the destination media pool.
Return Value
This function returns one of the following values.
ValueMeaning
ERROR_ACCESS_DENIEDNTMS_CONTROL_ACCESS to the media's media pool is denied. Other security errors are also possible, but they would indicate a security subsystem error.
Windows XP/2000: NTMS_MODIFY_ACCESS to the source media's media pool or the destination media pool is denied. Other security errors are also possible, but they would indicate a security subsystem error.
ERROR_BUSYAt least one side of the media is in use or currently unavailable.
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_MEDIA_POOLThe destination media pool is not valid; the media pool is nonexistent; or the media in the unrecognized or import pool may only be moved to the free pool.
ERROR_INVALID_MEDIAThe source media or implied source media pool is not valid.
ERROR_INVALID_PARAMETERThe media ID or media pool ID is missing.
ERROR_MEDIA_INCOMPATIBLEThe media type of the source differs from the media type of the destination media pool.
ERROR_NOT_ENOUGH_MEMORYAn allocation failure occurred during processing.
ERROR_SUCCESSThe function was successful.

Remarks
The destination pool specified in the MoveToNtmsMediaPool function must be of the same media type and have compatible security.
RSM writes an on-media identifier to media before moving the media into the free media pool.
A medium having a partition in the Completed, Allocated, or Reserved state may not be moved to the Free media pool. A medium may be moved to an Import pool only if all the partitions of the medium are in the Import state.
Windows Server 2003: If the free pool is the source pool, NTMS_USE_ACCESS to the free pool and NTMS_CONTROL_ACCESS to the destination pool is required. Otherwise, NTMS_CONTROL_ACCESS is required on both source and destination pool. If the free pool is the destination pool, NTMS_CONTROL_ACCESS to the source pool and NTMS_USER_ACCESS to the free pool is required. Otherwise, NTMS_CONTROL_ACCESS is required on both source and destination pools.
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
CreateNtmsMediaPool
Send comments about this topic to Microsoft
Build date: 7/30/2009
==原始网址==http://msdn.microsoft.com/en-us/library/bb540698(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 9:20:36