Note Windows 98 no longer uses this Interrupt. Attempts at invoking it will have no effect. However, the related Interrupt 2Fh Function 1605h Windows start up notification is still supported and applicable.
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.
This function has no return value. Windows calls this function when the processor is in real mode.
Interrupt 2Fh Function 1605h Windows Initialization Notification