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.
WNetDeviceMode
                                                     Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
WORD WNetDeviceMode(hParent)
HWND hParent;
 
The WNetDeviceMode function displays a dialog box, permitting to user to
examine and modify network settings.
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
hParent    Identifies the parent window for the dialog box.
 
Return Value
 
The return value is one of the following values.
 
Value             Meaning
────────────────────────────────────────────────────────────────────────────
WN_BAD_POINTER    Invalid pointer.
 
WN_NET_ERROR      Network error.
 
WN_NOT_SUPPORTED  Function not supported.
 
WN_OUT_OF_MEMORY  Out of memory.
 
WN_SUCCESS        Success.
 
WN_WINDOWS_ERROR  Windows function failed.
 
Comments
 
The export ordinal for this function is 14.
 
The network dialog box is often used to display information such as the
driver's name, driver's version number, version number of the installed
network software, and copyright notice. It is also used to let the user
choose settings for the network.
 
The user can call this dialog box from Control Panel.
 
                                      ♦