Debugging Tools for Windows

InitTypeRead

The InitTypeRead and InitTypeStrRead macros initialize a structure so that its members can be read using ReadField.

#define InitTypeRead(AddrType) \
    GetShortField(Addr, #Type, 1)

#define InitTypeStrRead(AddrTypeStr) \
    GetShortField(AddrTypeStr, 1)

Parameters

Addr
Specifies the address of the structure in the target's virtual memory.
Type
Specifies the name of the type of the structure. The C pre-processor will turn Type into a string.
TypeStr
Specifies the name of the type of the structure. TypeStr is expected to be an ASCII string.

Return Value

These macros return TRUE on success and FALSE on failure.

Comments

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.

Requirements

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).

See Also

InitTypeReadPhysical, ReadField, GetShortField

Build machine: CAPEBUILD