网站首页  词典首页

请输入您要查询的函数:

 

术语 setntmsobjectinformation
释义 SetNtmsObjectInformation
语法:
C++
DWORD SetNtmsObjectInformation(
__in HANDLE hSession,
__in LPNTMS_GUID lpObjectId,
__in LPNTMS_OBJECTINFORMATION lpInfo
);
SetNtmsObjectInformation功能
[移动存储管理不再作为Windows 7和Windows服务器2008 R2提供。]
该SetNtmsObjectInformation函数更改指定对象的信息结构。
参数
hSession [in]
处理由OpenNtmsSession函数返回的会议。
lpObjectId [in]
唯一标识符丹参对象。
lpInfo [in]
指针的NTMS_OBJECTINFORMATION结构。
返回值
这个函数返回下列值之一。
ValueMeaning
ERROR_ACCESS_DENIEDNTMS_MODIFY_ACCESS或NTMS_CONTROL_ACCESS被剥夺的对象是书面或不可更改的对象类型的。见备注。
ERROR_SUCCESSThe功能是成功的。
ERROR_DATABASE_FAILUREThe数据库无法访问或已损坏。
ERROR_DATABASE_FULLThe数据库已满。
ERROR_INVALID_HANDLEThe会话句柄丢失或无效。
ERROR_INVALID_PARAMETERThe对象ID或信息结构丢失,或对象的信息或对象类型的大小是无效的。
ERROR_NOT_ENOUGH_MEMORYAn分配在处理过程中出现故障。
ERROR_OBJECT_NOT_FOUNDThe对象ID是无效的。
备注
的大小和类型的信息必须设置才能使用SetNtmsObjectInformation。
对象的所有可写的属性是只读的NTMS_OBJECTINFORMATION结构和书面没有任何写有时间之间的这个应用程序称为GetNtmsObjectInformation函数和SetNtmsObjectInformation职能方面发生的业务数据库。因此,您可能丢失的变化。
为了避免不可预知的结果,应用程序必须调用之前调用SetNtmsObjectInformation GetNtmsObjectInformation。如上所述,SetNtmsObjectInformation更新所有可写的成员,因此应用程序提供的所有可写一个值负责任的成员。
以下是对对象具有可更新的成员名单。
ObjectMembers
NTMS_CHANGERszDescription
要求NTMS_MODIFY_ACCESS库。
Windows XP/2000操作系统:没有访问权限是必需的。
NTMS_CHANGER_TYPEszDescription
需要NTMS_MODIFY_ACCESS到计算机。
Windows XP/2000操作系统:没有访问权限是必需的。
NTMS_COMPUTERdwMediaPoolPolicydwLibRequestFlagsdwLibRequestPurgeTimedwOpRequestFlagsdwOpRequestPurgeTimeszDescription
需要NTMS_MODIFY_ACCESS到计算机。
Windows XP/2000操作系统:没有访问权限是必需的。
NTMS_DRIVEdwDeferDismountDelayszDescription
要求NTMS_MODIFY_ACCESS库。
Windows XP/2000操作系统:没有访问权限是必需的。
NTMS_DRIVE_TYPEszDescription
需要NTMS_MODIFY_ACCESS到计算机。
Windows XP/2000操作系统:没有访问权限是必需的。
NTMS_IEDOORMaxOpenSecsszDescription
要求NTMS_MODIFY_ACCESS库。
Windows XP/2000操作系统:没有访问权限是必需的。
NTMS_IEPORTMaxExtendSecsszDescription
要求NTMS_MODIFY_ACCESS库。
Windows XP/2000操作系统:没有访问权限是必需的。
NTMS_LIBRARYAutoRecoverydwCleanerUsesRemainingdwFlagsInventoryMethodszDescriptionszName
要求NTMS_CONTROL_ACCESS库。
NTMS_LIBREQUESTszDescription
要求NTMS_MODIFY_ACCESS库。
Windows XP/2000操作系统:没有访问权限是必需的。
NTMS_LOGICAL_MEDIAszDescriptionszName
要求NTMS_MODIFY_ACCESS的逻辑媒体的媒体池。
Windows XP/2000操作系统:没有访问权限是必需的。
NTMS_MEDIA_POOLAllocationPolicyDeallocationPolicydwMaxAllocatesMediaTypeszDescriptionszName
要求NTMS_MODIFY_ACCESS媒体池。
Windows XP/2000操作系统:要求NTMS_CONTROL_ACCESS媒体池。
NTMS_MEDIA_TYPEszDescription
需要NTMS_MODIFY_ACCESS到计算机。
Windows XP/2000操作系统:没有访问权限是必需的。
NTMS_OPREQUESTszDescription
需要NTMS_MODIFY_ACCESS到计算机。
Windows XP/2000操作系统:没有访问权限是必需的。
NTMS_PARTITIONszNameszDescription
需要NTMS_MODIFY_ACCESS向一侧媒体池。
Windows XP/2000操作系统:要求NTMS_CONTROL_ACCESS向一侧媒体池。
NTMS_PHYSICAL_MEDIAszDescriptionszName
要求NTMS_MODIFY_ACCESS媒体池。
Windows XP/2000操作系统:没有访问权限是必需的。
NTMS_STORAGESLOTszDescription
要求NTMS_MODIFY_ACCESS库。
Windows XP/2000操作系统:没有访问权限是必需的。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
客户端 支持 Windows Vista
服务器 支持 Windows Server 2008
HeaderNtmsapi.h
LibraryNtmsapi.lib
DLLNtmsapi.dll
Unicode和ANSI namesSetNtmsObjectInformationW(Unicode)和SetNtmsObjectInformationA(ANSI)的
参见
对象管理职能
GetNtmsObjectInformation
GetNtmsObjectSecurity
NTMS_OBJECTINFORMATION
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月30日
==英文原文==SetNtmsObjectInformation Function
[ Removable Storage Manager is no longer available as of Windows 7 and Windows Server 2008 R2.]
The SetNtmsObjectInformation function changes the information structure of the specified object.
Syntax
C++
DWORD SetNtmsObjectInformation(
__in HANDLE hSession,
__in LPNTMS_GUID lpObjectId,
__in LPNTMS_OBJECTINFORMATION lpInfo
);
Parameters
hSession [in]
Handle to the session returned by the OpenNtmsSession function.
lpObjectId [in]
Unique identifier of the RSM object.
lpInfo [in]
Pointer to an NTMS_OBJECTINFORMATION structure.
Return Value
This function returns one of the following values.
ValueMeaning
ERROR_ACCESS_DENIEDNTMS_MODIFY_ACCESS or NTMS_CONTROL_ACCESS is denied to the object being written or no modifications are allowed to the object type specified. See Remarks.
ERROR_SUCCESSThe function was successful.
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_PARAMETERThe object ID or information structure is missing, or the object information size or object type is not valid.
ERROR_NOT_ENOUGH_MEMORYAn allocation failure occurred during processing.
ERROR_OBJECT_NOT_FOUNDThe object ID is not valid.

Remarks
The information size and type must be set before you can use SetNtmsObjectInformation.
All writable properties for the object are read from the NTMS_OBJECTINFORMATION structure and written to the database without regard for any write operations that have occurred between the time this application called the GetNtmsObjectInformation function and the SetNtmsObjectInformation function. Because of this you can lose changes.
To avoid unpredictable results, applications must call GetNtmsObjectInformation before calling SetNtmsObjectInformation. As noted above, SetNtmsObjectInformation updates all writable members, therefore the application is responsible for providing a value for all writable members.
The following is the list of objects that have members that can be updated.
ObjectMembers
NTMS_CHANGERszDescription
Requires NTMS_MODIFY_ACCESS to the library.
Windows XP/2000: No access rights are required.
NTMS_CHANGER_TYPEszDescription
Requires NTMS_MODIFY_ACCESS to the computer.
Windows XP/2000: No access rights are required.
NTMS_COMPUTERdwMediaPoolPolicydwLibRequestFlagsdwLibRequestPurgeTimedwOpRequestFlagsdwOpRequestPurgeTimeszDescription
Requires NTMS_MODIFY_ACCESS to the computer.
Windows XP/2000: No access rights are required.
NTMS_DRIVEdwDeferDismountDelayszDescription
Requires NTMS_MODIFY_ACCESS to the library.
Windows XP/2000: No access rights are required.
NTMS_DRIVE_TYPEszDescription
Requires NTMS_MODIFY_ACCESS to the computer.
Windows XP/2000: No access rights are required.
NTMS_IEDOORMaxOpenSecsszDescription
Requires NTMS_MODIFY_ACCESS to the library.
Windows XP/2000: No access rights are required.
NTMS_IEPORTMaxExtendSecsszDescription
Requires NTMS_MODIFY_ACCESS to the library.
Windows XP/2000: No access rights are required.
NTMS_LIBRARYAutoRecoverydwCleanerUsesRemainingdwFlagsInventoryMethodszDescriptionszName
Requires NTMS_CONTROL_ACCESS to the library.
NTMS_LIBREQUESTszDescription
Requires NTMS_MODIFY_ACCESS to the library.
Windows XP/2000: No access rights are required.
NTMS_LOGICAL_MEDIAszDescriptionszName
Requires NTMS_MODIFY_ACCESS to the media pool of the logical media.
Windows XP/2000: No access rights are required.
NTMS_MEDIA_POOLAllocationPolicyDeallocationPolicydwMaxAllocatesMediaTypeszDescriptionszName
Requires NTMS_MODIFY_ACCESS to the media pool.
Windows XP/2000: Requires NTMS_CONTROL_ACCESS to the media pool.
NTMS_MEDIA_TYPEszDescription
Requires NTMS_MODIFY_ACCESS to the computer.
Windows XP/2000: No access rights are required.
NTMS_OPREQUESTszDescription
Requires NTMS_MODIFY_ACCESS to the computer.
Windows XP/2000: No access rights are required.
NTMS_PARTITIONszNameszDescription
Requires NTMS_MODIFY_ACCESS to the media pool of the side.
Windows XP/2000: Requires NTMS_CONTROL_ACCESS to the media pool of the side.
NTMS_PHYSICAL_MEDIAszDescriptionszName
Requires NTMS_MODIFY_ACCESS to the media pool.
Windows XP/2000: No access rights are required.
NTMS_STORAGESLOTszDescription
Requires NTMS_MODIFY_ACCESS to the library.
Windows XP/2000: No access rights are required.

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
Unicode and ANSI namesSetNtmsObjectInformationW (Unicode) and SetNtmsObjectInformationA (ANSI)
See Also
Object Management Functions
GetNtmsObjectInformation
GetNtmsObjectSecurity
NTMS_OBJECTINFORMATION
Send comments about this topic to Microsoft
Build date: 7/30/2009
==原始网址==http://msdn.microsoft.com/en-us/library/bb540744(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:25:26