Access to Structures

The structure-access macros are called by kernel-mode drivers to access parts of structures.

ARGUMENT_PRESENT

Returns FALSE if an argument pointer is NULL; otherwise returns TRUE.

CONTAINING_RECORD

Returns the base address of an instance of a structure given the structure type and the address of a field within it.

FIELD_OFFSET

Returns the byte offset of a named field in a known structure type.

 

 

Send comments about this topic to Microsoft

Show: