WNetCloseEnum (Windows Embedded CE 6.0)

1/6/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

See Also

Reference

Windows Networking API/Redirector Functions