Share via


InitTypeRead macro

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

Syntax

#define InitTypeRead(
    Addr,
    Type
);

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.

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

InitTypeStrRead

InitTypeReadPhysical

ReadField

GetShortField

 

 

Send comments about this topic to Microsoft