RtlMapGenericMask - NtDoc

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

NTSYSAPI
VOID
NTAPI
RtlMapGenericMask(
    _Inout_ PACCESS_MASK AccessMask,
    _In_ PGENERIC_MAPPING GenericMapping
    );

#endif

View code on GitHub
// ntddk.h

NTSYSAPI VOID RtlMapGenericMask(
  [in, out] PACCESS_MASK          AccessMask,
  [in]      const GENERIC_MAPPING *GenericMapping
);

View the official Windows Driver Kit DDI reference

NtDoc

This function is documented in Windows Driver Kit.

Windows Driver Kit DDI reference (nf-ntddk-rtlmapgenericmask)

RtlMapGenericMask function

Description

The RtlMapGenericMask routine determines the nongeneric access rights specified by an ACCESS_MASK.

Parameters

AccessMask [in, out]

Pointer to an ACCESS_MASK variable. The routine updates this to contain only those access rights that are not also granted by any GENERIC_XXX access rights originally specified the variable. The routine also clears any GENERIC_XXX bits that are set.

GenericMapping [in]

Pointer to a GENERIC_MAPPING structure that describes the specific access rights that correspond to each generic access right.

Return value

None

See also

GENERIC_MAPPING