#ifndef _NTSAM_H
_Check_return_
NTSTATUS
NTAPI
SamRidToSid(
_In_ SAM_HANDLE ObjectHandle,
_In_ ULONG Rid,
_Outptr_ PSID *Sid
);
View code on GitHub
This function is a wrapper over an RPC method documented in the [MS-SAMR] specification.