#ifndef _NTSAM_H
_Check_return_
NTSTATUS
NTAPI
SamOpenDomain(
_In_ SAM_HANDLE ServerHandle,
_In_ ACCESS_MASK DesiredAccess,
_In_ PSID DomainId,
_Out_ PSAM_HANDLE DomainHandle
);
View code on GitHub
This function is a wrapper over an RPC method documented in the [MS-SAMR] specification.