IDebugSymbols4::GetFieldOffset method (dbgeng.h)
The GetFieldOffset function returns the offset of a member from the beginning of a structure.
Syntax
__inline ULONG GetFieldOffset(
_In_ LPCSTR Type,
_In_ LPCSTR Field,
_Out_ PULONG pOffset
);
Parameters
[in] Module
Specifies the module containing the types of both the container and the field.
[in] TypeId
Specifies the name of the type of the structure. This can be qualified with a module name, for example, mymodule!mystruct.
[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".
[out] 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 |