Windows 3.1 Device Drivers (ddag31qh.hlp) (Table of Contents; Topic list)
Enabling and Disabling the Driver
                                                     Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
The network driver provides the Enable and Disable functions to allow
Windows to enable and disable the driver. The Enable function prepares the
system and network software for operation; the Disable function restores the
system and software to its previous configuration. For example, the Enable
function hooks the interrupt, and the Disable function removes the hook.
 
Windows calls Enable when first loading the driver. Standard-mode Windows
calls Disable when switching to a non-Windows application, and it calls
Enable when switching back from the non-Windows application. Finally,
Windows calls Disable when terminating itself. This final call to Disable
occurs before Windows calls the driver's WEP function.
 
 
                                      ♦