Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This method returns the interface pointers of the current process and thread.
HRESULT GetCurrentProcessAndThread( DWORD dwCpuNum, IOsAxsProcess**ppiproc, IOsAxsThread**ppithrd);
Parameters
dwCpuNum
[in] CPU number.This parameter should be 0 if the CPU is not a symmetric multi-processor platform (SMP). Otherwise, assign dwCpuNum a value between 0 and n-1, where n is the CPU number in the SMP system.
ppiproc
[out] Pointer to the process interface pointer.ppithrd
[out] Pointer to the thread interface pointer.
Return Values
The following table shows the 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 pointers. |
| E_OUTOFMEMORY | Indicates an out of memory error. |
| E_ACCESSDENIED | Indicates the specified object is no longer valid. |
| E_FAIL | Indicates an unspecified failure. |
Requirements
OS Version: Windows CE 5.0 and later.
Header: OsAccess.h.
Link Library: OSAXSC.lib.
See Also
Send Feedback on this topic to the authors