WinSwitchToProgram: Difference between revisions
Appearance
m Ak120 moved page OS2 API:PMI:WinSwitchToProgram to WinSwitchToProgram |
|||
Line 19: | Line 19: | ||
INCL_WINSWITCHLIST or INCL_PM or INCL_WIN | INCL_WINSWITCHLIST or INCL_PM or INCL_WIN | ||
=== Calling | === Calling Convention === | ||
[[Cdecl32]] | [[Cdecl32]] | ||
Revision as of 19:10, 18 January 2017
- WinSwitchToProgram(taskListHndl)
- Changes active task.
Parameters
- taskListHndl - HSWITCH - input
- Task List handle returned by:
Returns
Returns ULONG:
- 0 Successful.
- Anything else - unsuccessful.
Possible returns from WinGetLastError:
Define (C/C++)
INCL_WINSWITCHLIST or INCL_PM or INCL_WIN
Calling Convention
Example Code
HSWITCH taskListHndl; ULONG rc; ... rc = WinSwitchToProgram(taskListHndl); ...
Related Functions
Notes
Use this function, from a foreground session, to force another session to the foreground. A nonforeground session cannot make itself a foreground session.