ScreenSwitchEnable

  void ScreenSwitchEnable(wEnable)    
  WORD wEnable;    

The ScreenSwitchEnable function enables or disables screen switching under OS/2. It does not apply to running with MS-DOS.

Parameter

wEnable

Specifies what action to take. It is zero to disable the switch; nonzero to enable it.

Return Value

This function has no return value.

Comments

The export ordinal for this function is 100.

The display driver calls this function to inform the keyboard driver that the
display driver is in a critical section and, therefore, it should ignore all OS/2
screen switches until the display driver leaves the critical section.

The parameter is saved as a flag that is tested in the interrupt function; if it is zero, the OS/2 key combination for screen switching is ignored.

When Windows first starts, the screen switches are enabled.