CHECK_SCREEN_SWITCH_OK (Function 43)

Call With

EAX: Contains -1 if running in a known VESA mode.

EBX: Contains the VM handle (always the Windows VM).

ECX: Contains the video mode number (if known).

EBP: Points to the Windows VM's Client Registers.

Return Values

CY indicates that the hi-res application may not be switched away from. NC indicates that it is safe to switch away from the hi-res application.

Remarks

The Main VDD calls this routine whenever a user presses ALT-ENTER or ALT-TAB to switch away from a full-screen MS-DOS prompt. The mini-VDD should determine if it knows how to restore this mode. If it is a VESA mode or standard VGA mode, the Main VDD knows how to restore it and unless the mini-VDD has special considerations, it should return NC. Otherwise, it should return CY causing the system to beep to alert the user that the hi-res VM cannot be switched away from. This notification is not given if a user presses CTRL-ALT-DEL to terminate a full-screen application. In this case, no save of the screen is attempted and it will be impossible to restore the screen if the user tries to switch back. In this case, if the user tries to switch back, the system terminates the application.