Skip to content

Latest commit

 

History

History
71 lines (58 loc) · 1.85 KB

nf-ntdef-field_offset.md

File metadata and controls

71 lines (58 loc) · 1.85 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:ntdef.FIELD_OFFSET
FIELD_OFFSET macro (ntdef.h)
The FIELD_OFFSET macro returns the byte offset of a named field in a known structure type. (FIELD_OFFSET macro)
FIELD_OFFSET
FIELD_OFFSET function [Kernel-Mode Driver Architecture]
k106_d6f0b450-e99c-4dd7-94c5-f428e4b1d642.xml
kernel.field_offset
winnt/FIELD_OFFSET
kernel\field_offset.htm
Kernel
c792d021-3c64-4341-878c-08a7e163447c
08/03/2022
FIELD_OFFSET, FIELD_OFFSET function [Kernel-Mode Driver Architecture], k106_d6f0b450-e99c-4dd7-94c5-f428e4b1d642.xml, kernel.field_offset, winnt/FIELD_OFFSET
ntdef.h
Ntdef.h, Wdm.h, Ntddk.h, Miniport.h, Minitape.h, Scsi.h, Storport.h
Desktop
Available starting with Windows 2000.
Any level
Windows
19H1
FIELD_OFFSET
ntdef/FIELD_OFFSET
c++
APIRef
kbSyntax
HeaderDef
winnt.h
FIELD_OFFSET

FIELD_OFFSET macro

-description

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

-parameters

-param type [in]

Specifies the name of a known structure type containing Field.

-param field [in]

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

-remarks

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

-see-also

CONTAINING_RECORD