Windows Driver Kit: Kernel-Mode Driver Architecture
GENERIC_MAPPING

The GENERIC_MAPPING structure describes the ACCESS_MASK value of specific access rights associated with each type of generic access right.

typedef struct _GENERIC_MAPPING {
    ACCESS_MASK  GenericRead;
    ACCESS_MASK  GenericWrite;
    ACCESS_MASK  GenericExecute;
    ACCESS_MASK  GenericAll;
} GENERIC_MAPPING, *PGENERIC_MAPPING;

Members

GenericRead
Describes the specific access rights corresponding to the GENERIC_READ access right.
GenericWrite
Describes the specific access rights corresponding to the GENERIC_WRITE access right.
GenericExecute
Describes the specific access rights corresponding to the GENERIC_EXECUTE access right.
GenericAll
Describes the specific access rights corresponding to the GENERIC_ALL access right.

Comments

Use the IoGetFileObjectGenericMapping routine to get the specific access rights corresponding to generic access rights for file objects. Use RtlMapGenericMask to subtract off the access rights within an ACCESS_MASK that do not derive from generic access rights.

For more information about generic access rights, see the reference page for GENERIC_MAPPING in the Microsoft Windows SDK documentation.

Requirements

Headers: Defined in Wdm.h. Include Wdm.h, Ntddk.h, or Ntifs.h.

See Also

ACCESS_MASK, IoGetFileObjectGenericMapping, RtlMapGenericMask

Tags :


Page view tracker