RtlCheckTokenMembership - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _NTRTL_H
#if (PHNT_VERSION >= PHNT_WIN8)

// rev
NTSYSAPI
NTSTATUS
NTAPI
RtlCheckTokenMembership(
    _In_opt_ HANDLE TokenHandle,
    _In_ PSID SidToCheck,
    _Out_ PBOOLEAN IsMember
    );

#endif
#endif

View code on GitHub

Determines if a token can pass access checks against the specified SID.

Parameters

Pseudo-handles

This function supports the following pseudo-handle values:

Implementation details

This function calls RtlCheckTokenMembershipEx with flags set to 0.

Required OS version

This function was introduced in Windows 8.

Related Win32 API

See also