NPCloseEnum function (npapi.h)

The NPCloseEnum function closes an enumeration.

Syntax

DWORD NPCloseEnum(
  [in] HANDLE hEnum
);

Parameters

[in] hEnum

Handle obtained from an NPOpenEnum call.

Return value

If the function succeeds, it will return WN_SUCCESS. Otherwise, it will return an error code, which can be one of the following:

Return code Description
WN_NO_NETWORK
The network is not present. This condition is checked before hEnum is tested for validity.
WN_BAD_HANDLE
hEnum is not a valid handle.

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