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.
Error-Handling Functions
                                                     Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
The network driver can provide a variety of error-handling functions to let
File Manager and Print Manager retrieve additional information about errors
that occur over the network.
 
Function          Description
────────────────────────────────────────────────────────────────────────────
WNetGetError      Returns the status value (including error value) for the
                  most recent network operation.
 
WNetGetErrorInfo  Returns a text string describing the most recent network
                  error.
 
If appropriate, File Manager posts error messages whenever an error is
reported by a network driver function. If the error value is WN_NET_ERROR,
the WNetGetError and WNetGetErrorText functions will be called to allow the
network driver to return a network-specific error. If these two functions
fail or are not implemented, a generic message will be used instead. Some
functions, such as connection dialogs, are allowed to post their own
messages as part of processing the dialog box. File Manager never posts
error messages if the return value is WN_SUCCESS, WN_CANCEL, or WN_CONTINUE
unless otherwise noted.
 
 
                                      ♦