RegisterSwitchProc

The RegisterSwitchProc function registers an application procedure that will be called whenever the 3270 emulator is about to be switched in or out of memory by the MS-DOS version 5 or Windows task-switching code.

MS-DOS

USHORT FAR RegisterSwitchProc(

    ULONG switchProc

   );


Parameters

switchProc
A far pointer to the function where task activity will be notified. The function is defined as follows:

VOID FAR PASCAL SwitchProc(

    USHORT inOut

   );


Parameters

inOut
Zero if emulator is about to be switched out of memory, 1 if emulator is about to be switched back into memory.