博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Windows API 第21篇 DeleteVolumeMountPoint 删除挂载点
阅读量:6906 次
发布时间:2019-06-27

本文共 780 字,大约阅读时间需要 2 分钟。

函数原型:

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");       //............}

 

转载于:https://www.cnblogs.com/priarieNew/p/9755496.html

你可能感兴趣的文章
寄云-Paas云服务体验
查看>>
阿里巴巴天池大数据竞赛黄金联赛全面开战,全球同步报名,只为寻找最聪明的你!...
查看>>
性能测试loadrunner场景问题之socket
查看>>
60秒内快速搭建完整zabbix3.4.6监控系统
查看>>
RHEL6入门系列之十二,vi编辑器
查看>>
构建自动化运维之基础设施—定制php for fpm 的rpm包
查看>>
多年以来,你可找到努力的动力?
查看>>
为什么不能用memcached存储Session?
查看>>
安装windows server Hyper-v
查看>>
辞职后五险一金怎么处理?收藏下来吧~早晚用得到
查看>>
spring加载ApplicationContext.xml的四种方式
查看>>
fdisk分区命令详解与fdisk非交互式分区
查看>>
Windows 8 消费者预览版 安装图解
查看>>
配置 Project Server 2010 与 Microsoft Exchange Server 2010 结合使用
查看>>
小试牛刀chrome来调试APP
查看>>
Oracle等待事件
查看>>
Oracle体系结构之SQL语句的执行过程
查看>>
安装完最小化RHEL/CentOS 7后需要做的30件事情
查看>>
【案例讨论】从案例引发的对缓存设计的思考,干货讨论,绝对不玩虚的
查看>>
LVS+Keepalived 网站服务群集
查看>>