#ifndef _NTSAM_H _Check_return_ NTSTATUS NTAPI SamQuerySecurityObject( _In_ SAM_HANDLE ObjectHandle, _In_ SECURITY_INFORMATION SecurityInformation, _Outptr_ PSECURITY_DESCRIPTOR *SecurityDescriptor ); #endif View code on GitHub
This function is a wrapper over an RPC method documented in the [MS-SAMR] specification here, here, and here.