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.
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.
 
 
                                      ♦