Perform an enumeration based on handle returned by WNetOpenEnum.
DWORD WNetEnumResource (
HANDLE hEnum,
LPDWORD lpcCount,
LPVOID lpBuffer,
LPDWORD lpBufferSize
);
WN_NO_MORE_ENTRIES | no more entries found (the contents of the return buffer is undefined).
Other error codes include: |
WN_MORE_DATA | the buffer is too small even for one entry |
WN_BAD_HANDLE | hEnum is not a valid handle. |
WN_FUNCTION_BUSY | The MPR or NP is busy (possibly initializing). The caller should retry. |
WN_NO_NETWORK | network is not present. This condition is checked for before hEnum is tested for validity. |
WN_EXTENDED_ERROR | a network specific error occurred. WNetGetLastError should be called to obtain a description of the error. |