Jump to content

WinQuerySwitchHandle: Difference between revisions

From EDM2
m formatting
mNo edit summary
Line 50: Line 50:


=== OS Version Introduced ===
=== OS Version Introduced ===
[[OS2_API | Back to OS/2 API]]
[[Category:The OS/2 API Project]]

Revision as of 06:19, 30 October 2011

WinQuerySwitchHandle

WinQuerySwitchHandle(wndwHndl, processId)
Get a task list entry handle.

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.

Constants

None

Returns

Returns of HSWITCH with values of the switch handle or zero with an error occurring.

Possible returns from WinGetLastError:

Module

Define (C/C++)

INCL_WINSWITCHLIST or INCL_WIN or INCL_PM

Export name/Ordinal

Calling conversion

Cdecl32

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

OS Version Introduced

Back to OS/2 API