函数原型:
BOOL DeleteVolumeMountPoint(
                                                      LPCTSTR lpszVolumeMountPoint  // volume mount point path
                                                   );

参数:
lpszVolumeMountPoint  :挂载点路径,必须以反斜杠'\'结尾。

[in] Pointer to a string that indicates the volume mount point to be
unmounted. This may be a root directory (X:\, in which case the DOS drive letter
assignment is removed) or a directory on a volume (X:\mnt\). A trailing
backslash is required.

Remarks

It is not an error to attempt to unmount a volume from a volume mount point
when there is no volume actually mounted at that volume mount point.

举例说明:

//删除上一节子为F盘设置的挂载点C:\\share\\

CHAR szVolumeMountPoint[] = "C:\\share\\";

BOOL bRet = DeleteVolumeMountPoint(szVolumeMountPoint);

if (bRet)

{

        printf("success");

       //............

}

最新文章

  1. sql查询中datetime显示的格式为yyyy-DD-mm
  2. css的三种样式
  3. 【LeetCode】Roman to Integer & Integer to Roman
  4. Hadoop入门之安装配置(hadoop-0.20.2)
  5. 《DSP using MATLAB》示例Example4.2
  6. python查找算法的实现-二分法
  7. 天灵灵,地灵灵,但愿这个一定灵!!!python调用win32api,启动应用程序窗口
  8. hdfs 数据块重分布 sbin/start-balancer.sh -threshold
  9. 关于附件控件隐藏后,在IE下不能上传,报“拒绝访问”
  10. .NET日志工具介绍
  11. iOS 获取当前时间以及计算年龄(时间差)
  12. C++类与static
  13. boost库之graph入门
  14. session 与 cookie的区别用法
  15. 反射结合xml简单的模拟spring创建bean
  16. js常见算法(一)
  17. python操作mysql增删查改
  18. [转] xgboost
  19. git三、上传项目到github
  20. CentOS 7.x 如何关闭 numa

热门文章

  1. scala中Array简单实用
  2. 树的直径+质因子——好题!cf1101D
  3. Could not open file ..\obj\sys.o: No such file or directory解决办法
  4. json的dump和dumps的区别
  5. Google Chrome浏览器安装xpath helper插件
  6. <a>标签的SEO优化细节
  7. 01_MyBatis入门
  8. java开发系列-服务器tomcat
  9. System.UriFormatException: Invalid URI 解决方法
  10. fiddler抓包工具遇到的问题-------502报错