Bewerken

Delen via


GENERIC_MAPPING structure (wdm.h)

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

Syntax

typedef struct _GENERIC_MAPPING {
  ACCESS_MASK GenericRead;
  ACCESS_MASK GenericWrite;
  ACCESS_MASK GenericExecute;
  ACCESS_MASK GenericAll;
} GENERIC_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.

Remarks

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 Win32 reference page for the GENERIC_MAPPING structure.

Requirements

Requirement Value
Header wdm.h (include Wdm.h, Ntddk.h, Ntifs.h)

See also

ACCESS_MASK

IoGetFileObjectGenericMapping

RtlMapGenericMask