IOsAxsThread::SwitchExecutionTo (Windows Embedded CE 6.0)
1/5/2010
This method changes the kernel definition of the current thread.
Syntax
HRESULT SwitchExecutionTo(
IOsAxsProcess** ppiOldProc,
IOsAxsThread** ppiOldThrd,
IOsAxsProcess** ppiNewProc
);
Parameters
- ppiOldProc
[out] Pointer to the previous value for current process.
- ppiOldThrd
[out] Pointer to the previous value for current thread.
- ppiNewProc
[out] Pointer to the new value for the current process that corresponds to the new value for current thread.
Return Value
The following table shows return values for this method.
Value | Description |
---|---|
S_OK |
Indicates the function was successful. |
E_INVALIDARG |
Indicates one or more invalid arguments. |
E_POINTER |
Indicates one or more invalid pointer values. |
E_OUTOFMEMORY |
Indicates an out of memory error. |
E_ACCESSDENIED |
Indicates the requested object is no longer valid. |
E_FAIL |
Indicates an unspecified failure. |
Remarks
This method is useful for stepping in to a different thread from the thread that reached the last breakpoint.
This method does not change the thread or process being viewed during a break state halt. To change the thread or process being viewed, use IOsAxsProcess::SwitchViewTo.
Requirements
Header | OsAccess.h |
Library | OSAXSC.lib |
Windows Embedded CE | Windows CE 5.0 and later |