WNetCloseEnum (Windows CE 5.0)

Send Feedback

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

DWORD WNetCloseEnum(HANDLEhEnum );

Parameters

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

Return Values

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

OS Versions: Windows CE 2.0 and later.
Header: Winnetwk.h.
Link Library: Coredll.lib.

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.