次の方法で共有


InitTypeReadPhysical macro

The InitTypeReadPhysical and InitTypeStrReadPhysical macros initialize a structure in physical memory so that its members can be read using ReadField.

Syntax

#define InitTypeReadPhysical(
    Addr,
    Type,
    TypeStr
);

Parameters

  • Addr
    Specifies the address of the structure in the target's physical 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

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 or Dbgeng.h)

See also

InitTypeRead

ReadField

GetShortField

 

 

Send comments about this topic to Microsoft