Share via


WNetCloseEnum

This function ends a network resource enumeration started by the WNetOpenEnum function.

DWORD WNetCloseEnum(
HANDLE hEnum );

Parameters

  • hEnum
    [in] Handle to an enumeration instance. This handle must be returned by the WNetOpenEnum function.

Return Values

ERROR_SUCCESS indicates success. An error value indicates failure. To get extended error information, call GetLastError. Possible GetLastError values are described in the following table.

Value Description
ERROR_NO_NETWORK A network is not present.
ERROR_INVALID_HANDLE The handle specified in hEnum is not valid.

The function returns error values for compatibility with Windows for Workgroups. For compatibility with Win32, the function also sets the error value returned by GetLastError.

Requirements

Runs on Versions Defined in Include Link to
Windows CE OS 2.0 and later Winnetwk.h   Redir.lib

Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.

 Last updated on Tuesday, July 13, 2004

© 1992-2000 Microsoft Corporation. All rights reserved.