Partager via


InitTypeStrRead macro

The InitTypeRead macro initializes a structure so that its members can be read using ReadField.

Syntax

#define InitTypeRead(
    Addr,
    TypeStr
);

Parameters

  • Addr
    Specifies the address of the structure in the target's virtual memory.

  • TypeStr
    Specifies the name of the type of the structure. TypeStr is expected to be an ASCII string.

Return value

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.

Remarks

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

Target platform

Desktop

Header

Wdbgexts.h (include Wdbgexts.h, Wdbgexts.h, or Dbgeng.h)

See also

InitTypeRead

InitTypeReadPhysical

ReadField

GetShortField

 

 

Send comments about this topic to Microsoft