#ifndef _NTSAM_H
_Check_return_
NTSTATUS
NTAPI
SamGetGroupsForUser(
_In_ SAM_HANDLE UserHandle,
_Out_ _Deref_post_count_(*MembershipCount) PGROUP_MEMBERSHIP *Groups,
_Out_ PULONG MembershipCount
);
View code on GitHub
This function is a wrapper over an RPC method documented in the [MS-SAMR] specification.