This macro returns the base address of an instance of a structure, given the type of the structure and the address of a member within the containing structure.
Header file: | Winnt.h |
Windows CE versions: | 2.0 and later |
PCHAR CONTAINING_RECORD( IN PCHAR Address, IN TYPE Type,
IN PCHAR Field );
Returns a pointer to the base of the structure containing Field.
This macro is called to determine the base address of a structure whose type is known when the caller has a pointer to a field inside such a structure. This macro is useful for symbolically accessing other fields in a structure of known type.
A driver that calls this macro can be running at any IRQ level as long as the structure is resident. If a page fault might occur, callers must be at or below IRQ level APC_LEVEL.