对磁盘结构,网络映射不是很了解,都不知道怎么google到.

解决方案 »

  1.   

    The WNetGetConnection function retrieves the name of the network resource associated with a local device. DWORD WNetGetConnection(
      LPCTSTR lpLocalName,  // local name
      LPTSTR lpRemoteName,  // buffer for remote name
      LPDWORD lpnLength     // buffer size
    );Parameters
    lpLocalName 
    [in] Pointer to a constant null-terminated string that specifies the name of the local device to get the network name for. 
    lpRemoteName 
    [out] Pointer to a buffer that receives the null-terminated remote name used to make the connection. 
    lpnLength 
    [in/out] Pointer to a variable that specifies the size, in characters, of the buffer pointed to by the lpRemoteName parameter. If the function fails because the buffer is not large enough, this parameter returns the required buffer size.