IDebugSymbols5::GetFieldOffset method (dbgeng.h)

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

Syntax

HRESULT GetFieldOffset(
  [in] ULONG64 Module,
  [in] ULONG   TypeId,
  [in] PCSTR   Field,
       PULONG  Offset
);

Parameters

[in] Module

[in] TypeId

Specifies the type ID of the type.

[in] Field

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

Offset

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.

Requirements

Requirement Value
Target Platform Desktop
Header dbgeng.h (include Wdbgexts.h, Dbgeng.h)
Library dbgeng.h