WinAddSwitchEntry

Add an entry to the task list.

Syntax
WinAddSwitchEntry(switchControlStruct)

Parameters

 * switchControlStruct - SWCNTRL - input : The switch control data structure which contains information about the entry.

Returns
HSWITCH with values of: WinGetLastError could return:
 * The switch handle : succuss
 * NULLHANDLE : unsuccessful
 * PMERR_INVALID_PARAMETERS
 * PMERR_INVALID_PROCESS_ID
 * PMERR_INVALID_PROGRAM_TYPE
 * PMERR_INVALID_SESSION_ID
 * PMERR_INVALID_SWITCH_HANDLE
 * PMERR_INVALID_WINDOW
 * PMERR_NO_SPACE

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

Calling Convention
Cdecl32

Example Code
SWCNTRL switchControlStruct; HSWITCH rc; ... rc = WinAddSwitchEntry(switchControlStruct); ...

Related Functions

 * WinCreateStdWindow
 * WinCreateSwitchEntry
 * WinQuerySwitchEntry
 * WinQuerySwitchList
 * WinQueryWindowProcess
 * WinRemoveSwitchEntry
 * WinSwitchToProgram