Windows API 第21篇 DeleteVolumeMountPoint 删除挂载点
2024-10-07 23:05:53
函数原型:
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"); //............ }
最新文章
- sql查询中datetime显示的格式为yyyy-DD-mm
- css的三种样式
- 【LeetCode】Roman to Integer &; Integer to Roman
- Hadoop入门之安装配置(hadoop-0.20.2)
- 《DSP using MATLAB》示例Example4.2
- python查找算法的实现-二分法
- 天灵灵,地灵灵,但愿这个一定灵!!!python调用win32api,启动应用程序窗口
- hdfs 数据块重分布 sbin/start-balancer.sh -threshold
- 关于附件控件隐藏后,在IE下不能上传,报“拒绝访问”
- .NET日志工具介绍
- iOS 获取当前时间以及计算年龄(时间差)
- C++类与static
- boost库之graph入门
- session 与 cookie的区别用法
- 反射结合xml简单的模拟spring创建bean
- js常见算法(一)
- python操作mysql增删查改
- [转] xgboost
- git三、上传项目到github
- CentOS 7.x 如何关闭 numa
热门文章
- scala中Array简单实用
- 树的直径+质因子——好题!cf1101D
- Could not open file ..\obj\sys.o: No such file or directory解决办法
- json的dump和dumps的区别
- Google Chrome浏览器安装xpath helper插件
- <;a>;标签的SEO优化细节
- 01_MyBatis入门
- java开发系列-服务器tomcat
- System.UriFormatException: Invalid URI 解决方法
- fiddler抓包工具遇到的问题-------502报错