FIELD_OFFSET macro (scsi.h)
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
Specifies the name of a known structure type containing Field.
field
Specifies the name of a field in a structure of type Type.
Return value
None
Remarks
Used by device driver writers to symbolically determine the offset of a known field in a known structure type.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Available starting with Windows 2000. |
Target Platform | Desktop |
Header | scsi.h (include Wdm.h, Ntddk.h, Miniport.h, Minitape.h, Scsi.h, Storport.h) |
Library | scsi.h |
IRQL | Any level |