win12.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
WinSwitchToProgram (1.2)
                                                      Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_WINSWITCHLIST
 
USHORT WinSwitchToProgram(hSwitch)
HSWITCH hSwitch;    /* handle of application to activate */
 
The WinSwitchToProgram function makes an application the active application.
The function succeeds only if the calling application is currently the
active application (the application with the active window).
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
hSwitch    Identifies the application to make active.
 
Return Value
 
The return value is zero if the function is successful. Otherwise, it is an
error value, which may be the following:
 
    PMERR_INVALID_SWITCH_HANDLE
 
See Also
 
WinInstStartApp