网站首页  词典首页

请输入您要查询的函数:

 

术语 deletentmsmediatype
释义 DeleteNtmsMediaType
语法:
C++
DWORD DeleteNtmsMediaType(
__in HANDLE hSession,
__in LPNTMS_GUID lpMediaTypeId,
__in LPNTMS_GUID lpLibId
);
DeleteNtmsMediaType功能
[移动存储管理不再作为Windows 7和Windows服务器2008 R2提供。]
该DeleteNtmsMediaType函数删除由指定库中指定的媒体类型的关系,前提是该库不包含任何物理介质类型指定的媒体对象。
参数
hSession [in]
处理由OpenNtmsSession函数返回的会议。
lpMediaTypeId [in]
媒体类型的唯一标识符来删除一个库。
lpLibId [in]
唯一标识符的图书室,删除媒体类型。
返回值
这个函数返回下列值之一。
ValueMeaning
ERROR_ACCESS_DENIEDNTMS_MODIFY_ACCESS到库被拒绝。其他安全错误是可能的,但表明安全子系统的错误。
Windows XP/2000操作系统:到库NTMS_CONTROL_ACCESS被拒绝。其他安全错误是可能的,但表明安全子系统的错误。
ERROR_DATABASE_FAILUREThe数据库无法访问或已损坏。
ERROR_DATABASE_FULLThe数据库已满。
ERROR_INVALID_HANDLEThe会话句柄丢失或无效。
ERROR_INVALID_LIBRARYThe库ID是无效的。
ERROR_INVALID_PARAMETERThe媒体类型或库ID丢失。
ERROR_NOT_ENOUGH_MEMORYAn分配在处理过程中出现故障。
ERROR_SUCCESSThe功能是成功的。
备注
如果没有物理介质指定媒体在RSM系统类型的对象,也没有库的对象,包含指定媒体在RSM系统类型的关系,系统媒体池该媒体类型的将被删除。无法删除系统媒体池不会导致DeleteNtmsMediaType函数失败。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
客户端 支持 Windows Vista
服务器 支持 Windows Server 2008
HeaderNtmsapi.h
LibraryNtmsapi.lib
DLLNtmsapi.dll
参见
媒体服务函数
AddNtmsMediaType
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月30日
==英文原文==DeleteNtmsMediaType Function
[ Removable Storage Manager is no longer available as of Windows 7 and Windows Server 2008 R2.]
The DeleteNtmsMediaType function deletes the specified media type relation from the specified library, provided that the library does not contain any physical media objects of the specified media type.
Syntax
C++
DWORD DeleteNtmsMediaType(
__in HANDLE hSession,
__in LPNTMS_GUID lpMediaTypeId,
__in LPNTMS_GUID lpLibId
);
Parameters
hSession [in]
Handle to the session returned by the OpenNtmsSession function.
lpMediaTypeId [in]
Unique identifier of a media type to delete from a library.
lpLibId [in]
Unique identifier of the library from which to delete the media type.
Return Value
This function returns one of the following values.
ValueMeaning
ERROR_ACCESS_DENIEDNTMS_MODIFY_ACCESS to the library is denied. Other security errors are possible, but indicate a security subsystem error.
Windows XP/2000: NTMS_CONTROL_ACCESS to the library is denied. Other security errors are possible, but indicate a security subsystem error.
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_LIBRARYThe library ID is not valid.
ERROR_INVALID_PARAMETERThe media type or library ID is missing.
ERROR_NOT_ENOUGH_MEMORYAn allocation failure occurred during processing.
ERROR_SUCCESSThe function was successful.

Remarks
If there are no physical media objects of the specified media type in the RSM system and there are no library objects that contain the specified media type relation in the RSM system, the system media pools for that media type will be deleted. Inability to delete the system media pools does not cause the DeleteNtmsMediaType function to fail.
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
Send comments about this topic to Microsoft
Build date: 7/30/2009
==原始网址==http://msdn.microsoft.com/en-us/library/bb525494(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 11:28:16