Debugging Tools for Windows |
The InitTypeRead and InitTypeStrRead macros initialize a structure so that its members can be read using ReadField.
#define InitTypeRead(Addr, Type) \
GetShortField(Addr, #Type, 1)
#define InitTypeStrRead(Addr, TypeStr) \
GetShortField(Addr, TypeStr, 1)
These macros return TRUE on success and FALSE on failure.
Note Because these macros use the GetShortField function, ReadField must be used in the same source code file as these macros. For more details, see GetShortField.
Headers: Defined in wdbgexts.h. If you are writing a WdbgExts extension, include wdbgexts.h. If you are writing a DbgEng extension that uses this macro, include wdbgexts.h before dbgeng.h (see Writing DbgEng Extension Code for details).