非常感谢!

解决方案 »

  1.   

    CreatDirectory( ),详细的参数你查一下MSDN。
      

  2.   

    CreateDirectory
    This function creates a new directory. If the underlying file system supports security on files and directories, the function applies a specified security descriptor to the new directory. A remote application interface (RAPI) version of this function exists, and it is named CeCreateDirectory. BOOL CreateDirectory(
    LPCTSTR lpPathName, 
    LPSECURITY_ATTRIBUTES lpSecurityAttributes ); 
    Parameters
    lpPathName 
    [in] Long pointer to a null-terminated string that specifies the path of the directory to be created. 
    There is a default string size limit for paths of MAX_PATH characters. This limit is related to how the CreateDirectory function parses paths. lpSecurityAttributes 
    [in] Ignored; set to NULL. 
    Return Values
    Nonzero indicates success. Zero indicates failure. To get extended error information, call GetLastError. Res
    Some file systems, such as NTFS, support compression or encryption for individual files and directories. On volumes formatted for such a file system, a new directory inherits the compression and encryption attributes of its parent directory. 给你贴出来算了,你自己看一下吧。
      

  3.   

    “我的电脑”的路径是
    ::{20D04FE0-3AEA-1069-A2D8-08002B30309D}
    能不能建文件夹我不知道。
      

  4.   

    顺便写一下其他的路径吧。网上邻居
    ::{208D2C60-3AEA-1069-A2D7-08002B30309D}我的文档
    ::{450D8FBA-AD25-11D0-98A8-0800361B1103}这些可以输在资源管理器的地址栏里。还有一个函数可以做到。
    SHGetSpecialFolderPathCSIDL_DESKTOPDIRECTORY  桌面
    还有很多,可以到MSDN里查“CSIDL Values”if(FAILED(SHGetSpecialFolderLocation(NULL,CSIDL_DESKTOPDIRECTORY,&DesktopPidl))) return;
    if(!SHGetPathFromIDList(DesktopPidl, DesktopDir))//获得桌面路径
    {
    ShellMalloc->Free(DesktopPidl);
    ShellMalloc->Release();
    return;
    }
    ShellMalloc->Free(DesktopPidl);
    ShellMalloc->Release();
      

  5.   

    用CLSID好像不能建立目录,有其它方法吗?
      

  6.   

    建立文件夹我不懂,建立一个硬盘符还是可以的,估计和你的要求差不多:
    subst x: c:\windows
    然后在c:\windows\winstart.bat加上这句,每次开机就有了,隐蔽。
      

  7.   

    vc: CreateDirectory()
    vb: mkdir()
      

  8.   

    MSDN KB
    Q178665 HOWTO: RegView.exe Contains Shell Namespace Extension Example 
      

  9.   

    prettywolf(多情自古空余恨,此恨绵绵无绝期) :离我想要的差一点,我想要一个有CLSID的文件夹,和“我的文档“差不多的那种。