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
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.
Last updated on Saturday, April 10, 2004
© 1992-2003 Microsoft Corporation. All rights reserved.