// wdbgexts.h
ULONG GetFieldOffset(
[in] IN LPCSTR Type,
[in] IN LPCSTR Field,
[out] OUT PULONG pOffset
);
View the official Windows Driver Kit DDI referenceNo description available.
The GetFieldOffset function returns the offset of a member from the beginning of a structure.
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.
If the function succeeds, the return value is zero. Otherwise, the return value is an IG_DUMP_SYMBOL_INFO error code.