100分求教,怎么在资源管理器中创建和360云盘一样的文件夹

100分求教,如何在资源管理器中创建和360云盘一样的文件夹

大家好:

      请问如何在资源管理器中创建一个和本地磁盘同级的文件夹,在里面可以*的操作

      我之前用dos命令的subst来创建一个虚拟盘符,但是发现这样创建的盘符是无法重命名的

      想要实现的效果如下:
      
       

求代码
求指教
求高手
------最佳解决方案--------------------
http://topic.****.net/u/20100609/20/3dd26ad8-af37-47ad-a071-2ddbc9640e89.html
------其他解决方案--------------------
WNetAddConnection2这个可以达到你的要求。不过目前不知道如何更换图标
------其他解决方案--------------------
顶大牛,补充 WNetAddConnection2的用法


VC用代码实现映射网络驱动器
转自:http://hi.baidu.com/luoshengwen/blog/item/61712d129665a250f819b8e2.html
一:打开Project->Add Project->Flie选择C:// Program Files/Microsoft Visual Studio/VC98/Lib/MPR.LIB
二:主要实现代码如下:
       NETRESOURCE  ns;  
       memset(&ns,  0,  sizeof(ns));  
       ns.lpLocalName  =  "H:";  //如果不需要驱动器号,这儿可以是NULL  
       ns.lpRemoteName  =  "\\\\IP\\Share";//Ip为服务器IP,Share为共享的文件夹  
       ns.dwType  =  RESOURCETYPE_DISK;  
       if  (WNetAddConnection2(&ns,"密码,"用户名",0)!=NO_ERROR)
       {
              MessageBox("连接成功,可以访问网上邻居机器的共享目录了");
       }
三:WnetAddConnection2的用法
The WNetAddConnection2 function makes a connection to a network resource. The function can redirect a local device to the network resource.
The WNetAddConnection2 function supersedes the WNetAddConnection function. If you pass a handle to a window that the provider of network resources can use as an owner window for dialog boxes, use the WnetAddConnection3 function.
DWORD WNetAddConnection2(
  LPNETRESOURCE lpNetResource,  // points to structure that 
                                // specifies connection details
  LPCTSTR lpPassword,           // points to password string
  LPCTSTR lpUsername,           // points to user name string
  DWORD dwFlags                 // set of bit flags that specify 
                                // connection options
);
例:
  void CNeighborDlg::Redirect(const char *LocalName,const char *RemoteName,const char * UserName,const char *Password)