◄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 ♦