Skip to content

Latest commit

 

History

History
153 lines (127 loc) · 3.42 KB

nf-npapi-npdirectorynotify.md

File metadata and controls

153 lines (127 loc) · 3.42 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:npapi.NPDirectoryNotify
NPDirectoryNotify function (npapi.h)
Notifies the network provider of certain directory operations.
NPDirectoryNotify
NPDirectoryNotify function [Security]
WNDN_MKDIR
WNDN_MVDIR
WNDN_RMDIR
_mnp_npdirectorynotify
npapi/NPDirectoryNotify
security.npdirectorynotify
security\npdirectorynotify.htm
security
e76642b1-4af1-46f4-92c0-f10ff57dd808
12/05/2018
NPDirectoryNotify, NPDirectoryNotify function [Security], WNDN_MKDIR, WNDN_MVDIR, WNDN_RMDIR, _mnp_npdirectorynotify, npapi/NPDirectoryNotify, security.npdirectorynotify
npapi.h
Windows
Windows XP [desktop apps only]
Windows Server 2003 [desktop apps only]
Windows
19H1
NPDirectoryNotify
npapi/NPDirectoryNotify
c++
APIRef
kbSyntax
UserDefined
Npapi.h
NPDirectoryNotify

NPDirectoryNotify function

-description

Notifies the network provider of certain directory operations. The NPDirectoryNotify function is used by File Manager. This function can be used to perform special operations on certain directories.

-parameters

-param hwnd [in]

A handle to a window that should own any messages or dialog boxes in the event the network provider needs to interact with the user.

-param lpDir [in]

Pointer to the fully qualified name of the directory.

-param dwOper [in]

Indicates the operation about to be performed. This can be one of the following values.

Value Meaning
WNDN_MKDIR
File Manager is about to create a directory with the given name.
WNDN_RMDIR
File Manager is about to remove the directory.
WNDN_MVDIR
File Manager is about to rename the directory.

-returns

This function should return WN_SUCCESS if it is successful. This indicates to the caller that it should continue and perform the operation. Otherwise, it should return the appropriate code, which may include:

Return code Description
WN_CANCEL
The provider would have handled the operation, but the user canceled it. The caller should not perform the operation.
ERROR_CONTINUE
The network provider has already handled the operation. The caller should proceed normally but should not perform the operation.
WN_NOT_SUPPORTED
The network does not have special directory handling. This is treated as WN_SUCCESS.