Windows 3.1 Device Drivers (ddag31qh.hlp) (Table of Contents; Topic list)
WNetDirectoryNotify
                                                     Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
WORD WNetDirectoryNotify(hwnd, lpDir, wOper)
HWND hwnd;
LPSTR lpDir;
WORD wOper;
 
The WNetDirectoryNotify function is used by File Manager to notify the
network driver of certain directory operations. Network drivers typically
use this function to carry out special operations for certain directories.
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
hwnd       Identifies the owner of any dialog boxes displayed by this
           function. Although no dialog box is required, this function can
           display one if user input is needed.
 
lpDir      Points to a null-terminated string specifying a directory name.
           The names must be unambiguous, contain no wildcard characters and
           be fully qualified.
 
wOper      Specifies the operation. It can be one of the following values.
 
           Value           Meaning
           ─────────────────────────────────────────────────────────────────
           WNDN_MKDIR (1)  File Manager will create a directory with the
                           given name.
 
           WNDN_RMDIR (2)  File Manager will remove the directory.
 
           WNDN_MVDIR (3)  File Manager will rename the directory.
 
Return Value
 
The return value is one of the following values.
 
Value             Meaning
────────────────────────────────────────────────────────────────────────────
WN_CANCEL         The user cancelled the operation. Cancel the operation.
 
WN_CONTINUE       The network driver handled the operation. Proceed as if
                  the operation has been successfully handled.
 
WN_NOT_SUPPORTED  The network driver does not handle the given wOper
                  parameter in any special way. Treat the same as WN_SUCCESS
                  return value.
 
WN_SUCCESS        Success. Proceed with the operation.
 
For any other error value, the network driver supports the given wOper
parameter but some error occurred. In this case, File Manager reports the
error to the user, and treats the return value as if it were the WN_CANCEL
value.
 
Comments
 
The export ordinal for this function is 31.
 
File Manager calls WNetDirectoryNotify for local directories as well as
network directories.
 
                                      ♦