NPDirectoryNotify function (npapi.h)
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.
Syntax
DWORD NPDirectoryNotify(
[in] HWND hwnd,
[in] LPWSTR lpDir,
[in] DWORD dwOper
);
Parameters
[in] hwnd
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.
[in] lpDir
Pointer to the fully qualified name of the directory.
[in] dwOper
Indicates the operation about to be performed. This can be one of the following values.
Return value
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 |
---|---|
|
The provider would have handled the operation, but the user canceled it. The caller should not perform the operation. |
|
The network provider has already handled the operation. The caller should proceed normally but should not perform the operation. |
|
The network does not have special directory handling. This is treated as WN_SUCCESS. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows XP [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | npapi.h |