InitTypeRead macro
The InitTypeRead macro initializes a structure so that its members can be read using ReadField.
#define InitTypeRead(
Addr,
Type
);
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.
If this macro succeeds, it returns the value zero. If it fails because the caller passed a zero value as Addr, it returns the value MEMORY_READ_ERROR (defined in Wdbgexts.h). If it fails for any other reason, it returns an IG_DUMP_SYMBOL_INFO error code.
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.
Target platform |
Desktop |
Header |
Wdbgexts.h (include Wdbgexts.h, Wdbgexts.h, or Dbgeng.h) |