WinQuerySwitchList

Get the information about the entries in the task list.

Syntax
WinQuerySwitchList(anchorBlockHndl, swblockStruct, swblockStructSize)

Parameters

 * anchorBlockHndl - HAB - input : The anchor block handle.
 * swblockStruct - SWBLOCK - output : Pass the SWBLOCK struct for population or NULL to get the number of switch entries.
 * swblockStructSize - ULONG - input : Size of swblockStruct, in bytes. This is not a count of entries in swblockStruct.

Returns
ULONG with values of:
 * Zero : Error occurred.
 * Non-zero : Number of switch list entries in the system.

Possible errors receivable from WinGetLastError:
 * PMERR_INVALID_PARAMETERS
 * PMERR_NO_SPACE

Define (C/C++)
INCL_WINSWITCHLIST or INCL_PM or INCL_WIN

Calling Convention
Cdecl32

Example Code
HAB    anchorBlockHndl; SWBLOCK swblockStruct; ULONG  swblockStructSize; ULONG  rc; ... rc = WinQuerySwitchList(anchorBlockHndl, swblockStruct, swblockStructSize); ...

Related Functions

 * WinAddSwitchEntry
 * WinCreateSwitchEntry
 * WinQuerySwitchHandle
 * WinQueryTaskTitle