Bewerken

Delen via


SeSetAccessStateGenericMapping function (ntifs.h)

The SeSetAccessStateGenericMapping routine sets the generic mapping field of an ACCESS_STATE structure.

Syntax

void SeSetAccessStateGenericMapping(
  [in, out] PACCESS_STATE    AccessState,
  [in]      PGENERIC_MAPPING GenericMapping
);

Parameters

[in, out] AccessState

Pointer to the ACCESS_STATE structure to be modified.

[in] GenericMapping

Pointer to a GENERIC_MAPPING structure to be copied into the ACCESS_STATE structure specified by AccessState.

Return value

None

Remarks

SeSetAccessStateGenericMapping sets the GenericMapping field in the AuxData member of an ACCESS_STATE structure. If this field is not set when the ACCESS_STATE structure is created, SeSetAccessStateGenericMapping must be called to set this field before the structure is used to perform access validation.

The generic mapping structure defines the mapping of generic access rights to specific and standard access rights for an object. When a client requests generic access rights to an object, the desired access mask is mapped to one of the access masks defined in this structure.

For more information about security and access control, see Windows security model for driver developers and the documentation on these topics in the Windows SDK.

Requirements

Requirement Value
Target Platform Universal
Header ntifs.h (include Ntifs.h)
Library NtosKrnl.lib
DLL NtosKrnl.exe
IRQL PASSIVE_LEVEL

See also

ACCESS_STATE

GENERIC_MAPPING

SeAppendPrivileges