GetFieldOffset function (wdbgexts.h)
The GetFieldOffset function returns the offset of a member from the beginning of a structure.
ULONG GetFieldOffset(
[in] IN LPCSTR Type,
[in] IN LPCSTR Field,
[out] OUT PULONG pOffset
);
[in] Type
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] pOffset
Receives the offset of the member from the beginning of an instance of the structure.
If the function succeeds, the return value is zero. Otherwise, the return value is an IG_DUMP_SYMBOL_INFO error code.
Requirement | Value |
---|---|
Target Platform | Desktop |
Header | wdbgexts.h (include Wdbgexts.h, Dbgeng.h) |