Share via


IeXdi2Mem::ReadCpuRegByName (Windows Embedded CE 6.0)

1/5/2010

This method reads the content value of a CPU register, given the register name.

Syntax

HRESULT ReadCpuRegByName(
  DWORD dwCpuNum,
  LPOLESTR szRegName,
  REGVAL_TYPE* prv
);

Parameters

  • dwCpuNum
    [in] CPU number.

    This parameter should be 0 if this is not a symmetric multi-processor (SMP). Otherwise, assign dwCpuNum a value between 0 and n-1, where n is the CPU number in the SMP system.

  • szRegName
    [in] Name of the register to be read.
  • prv
    [out] Pointer to the value of register contents.

Return Value

The following table shows return values for this method.

Value Description

S_OK

Indicates the function was successful.

E_FAIL

Indicates an unspecified failure.

E_INVALIDARG

Indicates one or more invalid arguments.

EXDI_E_COMMUNICATION

Indicates a communication error between host driver and debugging target.

Requirements

Header eXDI2.h
Library ole32.lib, oleaut32.lib
Windows Embedded CE Windows CE 5.0 and later

See Also

Reference

IeXdi2Mem
IeXDI2 Interfaces