IOsAxsThread::SwitchExecutionTo (Windows CE 5.0)

Send Feedback

This method changes the kernel definition of the current thread.

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 Values

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

OS Version: Windows CE 5.0 and later.
Header: OsAccess.h.
Link Library: OSAXSC.lib.

See Also

IOsAxs Interfaces

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.