Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
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.
| Value | Meaning |
|---|---|
|
File Manager is about to create a directory with the given name. |
|
File Manager is about to remove the directory. |
|
File Manager is about to rename the directory. |
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 |
Feedback
Was this page helpful?
