WinSwitchToProgram: Difference between revisions
Appearance
m Martini moved page OS2 API:WinSwitchToProgram to OS2 API:PMI:WinSwitchToProgram |
mNo edit summary |
||
Line 1: | Line 1: | ||
;WinSwitchToProgram(taskListHndl) : Changes active task. | |||
; WinSwitchToProgram(taskListHndl) : Changes active task. | |||
=== Parameters === | === Parameters === | ||
; taskListHndl - [[ | ;taskListHndl - [[HSWITCH]] - input : Task List handle returned by: | ||
* [[ | :* [[WinAddSwitchEntry]] | ||
* [[ | :* [[WinCreateSwitchEntry]] | ||
* [[ | :* [[WinQuerySwitchList]] | ||
* [[ | :* [[WinQuerySwitchEntry]] | ||
=== Returns === | === Returns === | ||
Returns [[ | Returns [[ULONG]]: | ||
* 0 Successful. | * 0 Successful. | ||
* Anything else - unsuccessful. | * Anything else - unsuccessful. | ||
Possible returns from [[ | Possible returns from [[WinGetLastError]]: | ||
* [[OS2_API:PMI:error#PMERR_INVALID_SWITCH_HANDLE|PMERR_INVALID_SWITCH_HANDLE]] | * [[OS2_API:PMI:error#PMERR_INVALID_SWITCH_HANDLE|PMERR_INVALID_SWITCH_HANDLE]] | ||
=== Define (C/C++) === | === Define (C/C++) === | ||
INCL_WINSWITCHLIST or INCL_PM or INCL_WIN | INCL_WINSWITCHLIST or INCL_PM or INCL_WIN | ||
=== Calling conversion === | === Calling conversion === | ||
Line 30: | Line 23: | ||
=== Example Code === | === Example Code === | ||
HSWITCH taskListHndl; | |||
ULONG rc; | |||
... | ... | ||
rc = WinSwitchToProgram(taskListHndl); | rc = WinSwitchToProgram(taskListHndl); | ||
Line 37: | Line 30: | ||
=== Related Functions === | === Related Functions === | ||
[[ | *[[WinAddSwitchEntry]] | ||
[[ | *[[WinCreateSwitchEntry]] | ||
*[[WinQuerySwitchList]] | |||
*[[WinQuerySwitchEntry]] | |||
=== Notes === | === Notes === | ||
Use this function, from a foreground session, to force another session to the foreground. | Use this function, from a foreground session, to force another session to the foreground. A nonforeground session cannot make itself a foreground session. | ||
[[Category: | [[Category:Win]] |
Revision as of 19:26, 22 December 2016
- 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 conversion
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.