#ifndef _NTSAM_H
// Functions
_Check_return_
NTSTATUS
NTAPI
SamLookupDomainInSamServer(
_In_ SAM_HANDLE ServerHandle,
_In_ PUNICODE_STRING Name,
_Outptr_ PSID *DomainId
);
View code on GitHub
This function is a wrapper over an RPC method documented in the [MS-SAMR] specification.