Windows 3.1 Device Drivers (ddag31qh.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Interrupt 2Fh Function 1606h
                                                     Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
mov     dx, [Flags]  ; bit 0 clear if 386 enhanced-mode,
                     ; set if standard-mode
 
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 standard- or 386 enhanced-mode 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.
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
Flags      Specifies whether standard- or 386 enhanced-mode Windows is
           terminating. 386 enhanced-mode Windows sets bit 0 to 0;
           standard-mode Windows sets bit 0 to 1. Only bit 0 is used; all
           other bits reserved and undefined.
 
Return Value
 
This function has no return value.
 
Comments
 
Windows calls this function when the processor is in real mode.
 
 
                                      ♦