2OOO, 17 October
NtQuerySecurityObject
NtQuerySecurityObject
NTSYSAPI
NTSTATUS
NTAPI
NtQuerySecurityObject(
IN HANDLE ObjectHandle,
IN SECURITY_INFORMATION SecurityInformationClass,
OUT PSECURITY_DESCRIPTOR DescriptorBuffer,
IN ULONG DescriptorBufferLength,
OUT PULONG RequiredLength );
Function NtQuerySecurityObject retrieve object's
Security Descriptor.
- ObjectHandle HANDLE to any
object opened with READ_CONTROL access.
- SecurityInformationClass Can be
combination of:
- OWNER_SECURITY_INFORMATION
- GROUP_SECURITY_INFORMATION
- DACL_SECURITY_INFORMATION
- SACL_SECURITY_INFORMATION
- DescriptorBufferLength Size of buffer,
in bytes.
- RequiredLength Pointer to value
receiving required length of buffer.
- Documented by:
- Tomasz Nowak
Requirements:
- Library: ntdll.lib
See also:
- NtSetSecurityObject
- SECURITY_DESCRIPTOR