Debugging Tools for Windows |
The GetFieldTypeAndOffset and GetFieldTypeAndOffsetWide methods return the type of a field and its offset within a container.
IDebugSymbols3::GetFieldTypeAndOffset(
IN ULONG64 Module,
IN ULONG ContainerTypeId,
IN PCSTR Field,
OUT OPTIONAL PULONG FieldTypeId,
OUT OPTIONAL PULONG Offset
);
IDebugSymbols3::GetFieldTypeAndOffsetWide(
IN ULONG64 Module,
IN ULONG ContainerTypeId,
IN PCWSTR Field,
OUT OPTIONAL PULONG FieldTypeId,
OUT OPTIONAL PULONG Offset
);
#ifdef UNICODE
#define GetFieldTypeAndOffsetT GetFieldTypeAndOffsetWide
#else
#define GetFieldTypeAndOffsetT GetFieldTypeAndOffset
#endif
This method may also return error values. See Return Values for more details.
GetFieldTypeAndOffset and GetFieldTypeAndOffsetWide are available in IDebugSymbols3 and later versions.
An example of a dot-separated path for the Field parameter is as follows. Suppose the MyStruct structure contains a field MyField of type MySubStruct, and the MySubStruct structure contains the field MySubField. Then the type of this field and its location relative to the location of MyStruct structure can be found by passing "MyField.MySubField" as the Field parameter to this method.
For more information about types, see Types. For more information about symbols, see Symbols.
Headers: Defined in Dbgeng.h. Include Dbgeng.h.