WinSwitchToProgram: Difference between revisions
Appearance
m formatting |
mNo edit summary |
||
Line 44: | Line 44: | ||
=== OS Version Introduced === | === OS Version Introduced === | ||
[[OS2_API | Back to OS/2 API]] | |||
[[Category:The OS/2 API Project]] |
Revision as of 05:56, 30 October 2011
WinSwitchToProgram
- WinSwitchToProgram(taskListHndl)
- Changes active task.
Parameters
- taskListHndl - HSWITCH - input
- Task List handle returned by:
Constants
Returns
Returns ULONG:
- 0 Successful.
- Anything else - unsuccessful.
Possible returns from WinGetLastError:
Module
Define (C/C++)
INCL_WINSWITCHLIST or INCL_PM or INCL_WIN
Export name/Ordinal
Calling conversion
Example Code
HSWITCH taskListHndl; ULONG rc; ... rc = WinSwitchToProgram(taskListHndl); ...
Related Functions
WinAddSwitchEntry WinCreateSwitchEntry WinQuerySwitchList WinQuerySwitchEntry
Notes
Use this function, from a foreground session, to force another session to the foreground. A nonforeground session cannot make itself a foreground session.