WinQuerySwitchHandle: Difference between revisions
Appearance
mNo edit summary |
|||
Line 1: | Line 1: | ||
Get a task list entry handle. | |||
==Syntax== | |||
WinQuerySwitchHandle (wndwHndl, processId) | |||
=== Parameters === | === Parameters === | ||
Line 9: | Line 12: | ||
Possible returns from [[OS2 API:WinGetLastError|WinGetLastError]]: | Possible returns from [[OS2 API:WinGetLastError|WinGetLastError]]: | ||
* [[ | * [[PM Error Codes#PMERR_INVALID_PARAMETERS|PMERR_INVALID_PARAMETERS]] | ||
* [[ | * [[PM Error Codes#PMERR_INVALID_PROCESS_ID|PMERR_INVALID_PROCESS_ID]] | ||
* [[ | * [[PM Error Codes#PMERR_INVALID_WINDOW|PMERR_INVALID_WINDOW]] | ||
=== Define (C/C++) === | === Define (C/C++) === | ||
Line 28: | Line 31: | ||
OR | OR | ||
... | ... | ||
rc = WinQuerySwitchHandle( | rc = WinQuerySwitchHandle(NULL, processId); | ||
... | ... | ||
=== Related Functions === | === Related Functions === | ||
*[[WinQuerySwitchEntry]] | *[[WinQuerySwitchEntry]] | ||
* | *WinQueryWindowProcess | ||
*[[WinRemoveSwitchEntry]] | *[[WinRemoveSwitchEntry]] | ||
Revision as of 16:40, 3 March 2017
Get a task list entry handle.
Syntax
WinQuerySwitchHandle (wndwHndl, processId)
Parameters
- wndwHndl - HWND - input
- Window handle or NULLHANDLE if specifying with processId.
- processId - PID - input
- Process identifier in the task list or zero if using the window handle.
Returns
Returns of HSWITCH with values of the switch handle or zero with an error occurring.
Possible returns from WinGetLastError:
Define (C/C++)
INCL_WINSWITCHLIST or INCL_WIN or INCL_PM
Calling Convention
Example Code
HWND wndwHndl; PID processId; HSWITCH rc; ... rc = WinQuerySwitchHandle(wndwHndl, NULL); ...
OR
... rc = WinQuerySwitchHandle(NULL, processId); ...
Related Functions
- WinQuerySwitchEntry
- WinQueryWindowProcess
- WinRemoveSwitchEntry
Notes
If wndwHndl and processId are used, they must be correct