在注册表里有。
键值?你拿一个共享文件夹名在RegEdit里搜索一下吧

解决方案 »

  1.   

    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
    );
    Parameters
    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. 
    If the function succeeds, on return the variable pointed to by this parameter contains the number of entries actually read. lpBuffer 
    [out] Pointer to the buffer that receives the enumeration results. The results are returned as an array of NETRESOURCE structures. Note that the buffer you allocate must be large enough to hold the structures, plus the strings to which their members point. For more information, see the following Res section. 
    The buffer is valid until the next call using the handle specified by the hEnum parameter. The order of NETRESOURCE structures in the array is not predictable. lpBufferSize 
    [in/out] Pointer to a variable that specifies the size, in bytes, of the lpBuffer parameter. If the buffer is too small to receive even one entry, this parameter receives the required size of the buffer