Group: Windows Networking - Library: mpr
The WNetEnumResource function continues an enumeration of network resources that was started by a call to the WNetOpenEnum function.
DWORD WNetEnumResource(
HANDLE hEnum, // handle to enumeration
LPDWORD lpcCount, // entries to list
LPVOID lpBuffer, // buffer
LPDWORD lpBufferSize // buffer size
);
DECLARE INTEGER WNetEnumResource IN mpr;
INTEGER hEnum,;
INTEGER @ lpcCount,;
STRING @ lpBuffer,;
INTEGER @ lpBufferSize
hEnum [in] Specifies a handle that identifies an enumeration instance. This handle must be returned by the WNetOpenEnum function.
lpcCount [in/out] Pointer to a variable specifying the number of entries requested. If the number requested is –1, the function returns as many entries as possible.
lpBuffer [out] Pointer to the buffer that receives the enumeration results. The results are returned as an array of NETRESOURCE structures.
lpBufferSize [in/out] Pointer to a variable that specifies the size, in bytes, of the lpBuffer parameter.
If the function succeeds, the return value is one of the following values: NO_ERROR, ERROR_NO_MORE_ITEMS.