#ifndef _NTSAM_H _Check_return_ NTSTATUS NTAPI SamSetSecurityObject( _In_ SAM_HANDLE ObjectHandle, _In_ SECURITY_INFORMATION SecurityInformation, _In_ 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.