Compartilhar via


WNetCloseEnum

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

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

Syntax

DWORD WNetCloseEnum(
  HANDLE hEnum 
);

Parameters

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

Return Value

This function does return correct values. For more information, call GetLastError to retrieve the correct result. Possible GetLastError values are described in the following table.

Value Description

ERROR_SUCCESS

Indicates success.

ERROR_NO_NETWORK

A network is not present.

ERROR_INVALID_HANDLE

The handle specified in hEnum is not valid.

Requirements

Header winnetwk.h
Library coredll.lib
Windows Embedded CE Windows CE 2.0 and later
Windows Mobile Windows Mobile Version 5.0 and later