GetFieldOffset - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// wdbgexts.h

ULONG GetFieldOffset(
  [in]  IN LPCSTR  Type,
  [in]  IN LPCSTR  Field,
  [out] OUT PULONG pOffset
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-wdbgexts-getfieldoffset)

GetFieldOffset function

Description

The GetFieldOffset function returns the offset of a member from the beginning of a structure.

Parameters

Type [in]

Specifies the name of the type of the structure. This can be qualified with a module name, for example, mymodule!mystruct.

Field [in]

Specifies the name of the member in the structure. Submembers can be specified by using a period-separated path, for example, "myfield.mysubfield".

pOffset [out]

Receives the offset of the member from the beginning of an instance of the structure.

Return value

If the function succeeds, the return value is zero. Otherwise, the return value is an IG_DUMP_SYMBOL_INFO error code.