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 |
|
See also
Send comments about this topic to Microsoft
Build date: 4/2/2012