怎样用程序在网上邻居里面创建web文件夹或ftp站点的快捷方式?

解决方案 »

  1.   

    DWORD WNetAddConnection2(
      LPNETRESOURCE lpNetResource,  // connection details
      LPCTSTR lpPassword,           // password
      LPCTSTR lpUsername,           // user name
      DWORD dwFlags                 // connection options
    );
      

  2.   

    用这个函数的时候,lpNetResource中的lpRemoteName指定为ftp://xxx.xxx.xxx.xxx/时好像不成功,错误是1200(指定的设备名无效)
      

  3.   

    楼上的兄弟有映射ftp目录的code吗?