What is the difference between CreateDirectory and SHCreateDirectory? RRS feed

  • 问题

  • Some code like this:

    CreateDirectory(folder0,NULL) ;


    Is there any difference of the access privillege between folder0 and folder1?

    2012年11月20日 6:54


  • SHCreateDirectory: This function creates a file system folder whose fully-qualified path is given by pszPath. If one or more of the intermediate folders do not exist, it creates them.

    SHCreateDirectory函数功能: MFC中,该函数创建一个文件系统的目录。与CreateDirectory不同的如果路径中有文件夹不存在,这些文件夹会被创建。 有了这个函数,就不用在创建多层文件夹时使用递归和CreateDirectory来实现了。

    Visual C++ enthusiast, like network programming and driver development. At present is being engaged in the WinCE/Windows Mobile platform embedded development.

    2012年11月20日 7:46