This topic has not yet been rated - Rate this topic

FIELD_OFFSET macro

The FIELD_OFFSET macro returns the byte offset of a named field in a known structure type.

Syntax

LONG FIELD_OFFSET(
  [in]  TYPE Type,
  [in]  PCHAR Field
);

Parameters

Type [in]

Specifies the name of a known structure type containing Field.

Field [in]

Specifies the name of a field in a structure of type Type.

Return value

Returns the byte offset of the caller supplied Field in the Type structure.

Remarks

Used by device driver writers to symbolically determine the offset of a known field in a known structure type.

Requirements

Version

Available in Windows 2000 and later versions of Windows.

Header

Ntdef.h (include Wdm.h or Ntddk.h)

See also

CONTAINING_RECORD

 

 

Send comments about this topic to Microsoft

Build date: 4/2/2012

Did you find this helpful?
(1500 characters remaining)