术语 | getntmsobjectsecurity |
释义 | GetNtmsObjectSecurity 语法: C++ DWORD GetNtmsObjectSecurity( __in HANDLE hSession, __in LPNTMS_GUID lpObjectId, __in DWORD dwType, __in SECURITY_INFORMATION RequestedInformation, __out PSECURITY_DESCRIPTOR pSecurityDescriptor, __in DWORD nLength, __out LPDWORD lpnLengthNeeded ); GetNtmsObjectSecurity功能 [移动存储管理不再作为Windows 7和Windows服务器2008 R2提供。] 该GetNtmsObjectSecurity函数读取指定的罗申对象的安全描述符。 参数 hSession [in] 处理由OpenNtmsSession函数返回的会议。 lpObjectId [in] 唯一标识符丹参对象。 dwType [in] 对象类型。 NtmsObjectsTypes对于对象类型的列表,请参阅。 RequestedInformation [in] 阿SECURITY_INFORMATION值,指定所要求的安全数据。 pSecurityDescriptor [out] 指针SECURITY_DESCRIPTOR结构,它接收安全描述符。 nLength [in] 长度的描述。 lpnLengthNeeded [out] 所需长度的缓冲区如果没有大的安全描述符的是,在字节。 返回值 这个函数返回下列值之一。 ValueMeaning ERROR_ACCESS_DENIEDREAD_CONTROL访问对象被拒绝。 Windows XP/2000操作系统:没有访问权限是必需的。 ERROR_DATABASE_FAILUREThe数据库无法访问或已损坏。 ERROR_INVALID_HANDLEThe会话句柄丢失或无效。 ERROR_INVALID_PARAMETERThe对象ID丢失。 ERROR_NO_SECURITY_ON_OBJECTThere没有此对象的安全信息。 ERROR_OBJECT_NOT_FOUNDThe对象ID是无效的。 ERROR_SUCCESSThe功能是成功的。 备注 丹参安全使用标准的安全描述符和资料。这使得标准安全对话框,用来选择罗申保险箱。有关详细信息,请参阅SetPrivateObjectSecurity功能。如需安全有关罗申信息,请参见丹参安全。 要求: 最低支持:client-Windows 2000专业版 最低支持server-Windows 2000服务器 客户端 支持 Windows Vista 服务器 支持 Windows Server 2008 HeaderNtmsapi.h LibraryNtmsapi.lib DLLNtmsapi.dll 参见 对象管理职能 EnumerateNtmsObject SetNtmsObjectSecurity 如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com) 生成日期:2009年7月30日 ==英文原文==GetNtmsObjectSecurity Function [ Removable Storage Manager is no longer available as of Windows 7 and Windows Server 2008 R2.] The GetNtmsObjectSecurity function reads the security descriptor for the specified RSM object. Syntax C++ DWORD GetNtmsObjectSecurity( __in HANDLE hSession, __in LPNTMS_GUID lpObjectId, __in DWORD dwType, __in SECURITY_INFORMATION RequestedInformation, __out PSECURITY_DESCRIPTOR pSecurityDescriptor, __in DWORD nLength, __out LPDWORD lpnLengthNeeded ); Parameters hSession [in] Handle to the session returned by the OpenNtmsSession function. lpObjectId [in] Unique identifier of the RSM object. dwType [in] Object type. For a list of object types, see NtmsObjectsTypes . RequestedInformation [in] A SECURITY_INFORMATION value that specifies the requested security data. pSecurityDescriptor [out] Pointer to a SECURITY_DESCRIPTOR structure that receives the security descriptor. nLength [in] Length of the descriptor. lpnLengthNeeded [out] Required length of the buffer if it is not large enough for the security descriptor, in bytes. Return Value This function returns one of the following values. ValueMeaning ERROR_ACCESS_DENIEDREAD_CONTROL access to the object is denied. Windows XP/2000: No access rights are required. ERROR_DATABASE_FAILUREThe database is inaccessible or damaged. ERROR_INVALID_HANDLEThe session handle is missing or is not valid. ERROR_INVALID_PARAMETERThe object ID is missing. ERROR_NO_SECURITY_ON_OBJECTThere is no security information for this object. ERROR_OBJECT_NOT_FOUNDThe object ID is not valid. ERROR_SUCCESSThe function was successful. Remarks RSM security uses the standard security descriptors and information members. This allows the standard security dialog boxes to be used to select RSM security. For more information, see the SetPrivateObjectSecurity function. For more information on RSM security, see RSM Security . 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 Object Management Functions EnumerateNtmsObject SetNtmsObjectSecurity Send comments about this topic to Microsoft Build date: 7/30/2009 ==原始网址==http://msdn.microsoft.com/en-us/library/bb540678(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。