Jump to content

WinQuerySwitchEntry

From EDM2
Revision as of 08:02, 11 March 2006 by Daniel.lee.kruse (talk | contribs) (WinQuerySwitchEntry created)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

DosSleep

WinQuerySwitchEntry(switchHndl, switchControl)

Get information on a task list entry.

Parameters

switchHndl - HSWITCH - input

The task list switch handle that was returned by WinAddSwitchEntry, WinCreateSwitchEntry, WinQuerySwitchList, or WinQuerySwitchEntry.

switchControl - SWCNTRL - output

The switch control data. Information about the task list entry. Using the field for the program handle, it can be used to invoke the task.

Constants

None

Returns

ULONG with values of:

Zero
success
Non-zero
not successful

WinGetLastError could return:

Module

Define (C/C++)

INCL_WINSWITCHLIST or INCL_WIN or INCL_PM

Export name/Ordinal

Calling conversion

Cdecl32

Example Code

HSWITCH switchHndl;
SWCNTRL switchControl;
ULONG   rc;
...
rc = WinQuerySwitchEntry(switchHndle, switchControl);
...

Related Functions

WinAddSwitchEntry WinCreateSwitchEntry WinQuerySwitchList WinQueryWindowProcess

Notes

OS Version Introduced