IeXdi2Mem::WriteCpuRegByName (Windows Embedded CE 6.0)
1/5/2010
This method writes the content value of a CPU register, given the register name.
Syntax
HRESULT WriteCpuRegByName(
DWORD dwCpuNum,
LPOLESTR szRegName,
REGVAL_TYPE rv
);
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 written.
- rv
[in] New value of the register.
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 |