Interrupt 2Fh Function 1606h


mov     dx, [Flags]  ; bit 0 clear

mov     ax, 1606h    ; Windows Termination Notification
int     2fh          ; multiplex interrupt

Windows Termination Notification (Interrupt 2Fh Function 1606h) notifies MS-DOS device drivers and TSRs that Windows is terminating. Windows calls this function as it terminates allowing MS-DOS device drivers and TSRs that monitor Interrupt 2Fh the opportunity to prepare for leaving the Windows environment.

Flags

Specifies whether Windows 95 is terminating. Bit 0 set to 0 for Windows 95; bit 0 to 1 for other, previous versions of Windows. Only bit 0 is used; all other bits reserved and undefined.

Windows calls this function when the processor is in real mode.

See also Interrupt 2Fh Function 1605h Windows Initialization Notification