术语 | changentmsmediatype |
释义 | ChangeNtmsMediaType 语法: C++ DWORD ChangeNtmsMediaType( __in HANDLE hSession, __in LPNTMS_GUID Pmid, __in LPNTMS_GUID MPoolId ); ChangeNtmsMediaType功能 [移动存储管理不再作为Windows 7和Windows服务器2008 R2提供。] 该ChangeNtmsMediaType函数将指定的日期到指定的目标媒体池,并设置关键词的媒体类型识别的目标媒体池的媒体类型。 参数 hSession [in] 处理由OpenNtmsSession函数返回的会议。 关键词 [in] 物理媒体的唯一标识符动议的。 MPoolId [in] 唯一标识符媒体库,这个媒体分配。 返回值 这个函数返回下列值之一。 ValueMeaning ERROR_ACCESS_DENIEDNTMS_MODIFY_ACCESS到计算机或媒体的媒体池被拒绝。其他安全错误是可能的,但他们都将意味着安全子系统的错误。 Windows XP/2000操作系统:媒体的媒体池NTMS_MODIFY_ACCESS被拒绝。 ERROR_DATABASE_FAILUREThe数据库无法访问或已损坏。 ERROR_DATABASE_FULLThe数据库已满。 ERROR_INVALID_HANDLEThe会话句柄丢失或无效。 ERROR_INVALID_MEDIA_POOLThe媒体池ID是无效的。 ERROR_INVALID_PARAMETERThe媒体池中或媒体ID丢失。 ERROR_NOT_ENOUGH_MEMORYAn分配在处理过程中出现故障。 ERROR_SUCCESSThe功能是成功的。 备注 函数使用的ChangeNtmsMediaType提出的MoveToNtmsMediaPool功能媒体同样的政策(无法识别的媒体只能转移到空闲池)。 要求: 最低支持:client-Windows 2000专业版 最低支持server-Windows 2000服务器 客户端 支持 Windows Vista 服务器 支持 Windows Server 2008 HeaderNtmsapi.h LibraryNtmsapi.lib DLLNtmsapi.dll 参见 媒体服务函数 AddNtmsMediaType DeleteNtmsMediaType 如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com) 生成日期:2009年7月30日 ==英文原文==ChangeNtmsMediaType Function [ Removable Storage Manager is no longer available as of Windows 7 and Windows Server 2008 R2.] The ChangeNtmsMediaType function moves the specified PMID to the specified target media pool and sets the PMID's media type identifier to the media type of the target media pool. Syntax C++ DWORD ChangeNtmsMediaType( __in HANDLE hSession, __in LPNTMS_GUID Pmid, __in LPNTMS_GUID MPoolId ); Parameters hSession [in] Handle to the session returned by the OpenNtmsSession function. Pmid [in] Unique identifier of the physical media to be moved. MPoolId [in] Unique identifier of the media pool from which the media is to be allocated. Return Value This function returns one of the following values. ValueMeaning ERROR_ACCESS_DENIEDNTMS_MODIFY_ACCESS to the computer or the media's media pool is denied. Other security errors are possible, but they would indicate a security subsystem error. Windows XP/2000: NTMS_MODIFY_ACCESS to the media's media pool is denied. 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 media pool ID is not valid. ERROR_INVALID_PARAMETERThe media pool or media ID is missing. ERROR_NOT_ENOUGH_MEMORYAn allocation failure occurred during processing. ERROR_SUCCESSThe function was successful. Remarks The ChangeNtmsMediaType function uses the same policy for moving media as the MoveToNtmsMediaPool function (unrecognized media can only be moved to the free pool). 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 AddNtmsMediaType DeleteNtmsMediaType Send comments about this topic to Microsoft Build date: 7/30/2009 ==原始网址==http://msdn.microsoft.com/en-us/library/bb525479(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。