使用Win API删除驱动器号 [英] Remove drive letter using Win API

查看:118
本文介绍了使用Win API删除驱动器号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi

   我要删除驱动器号,然后重新分配 信.这是通过使用DISKPART的实现的.删除字母,分配 字母.

    I want to remove the drive letter and then reassign the letter. This is achieved by using DISKPART''s  remove letter, assign letter.

   但是我想使用C ++以编程方式实现此任务.

    But I want to achieve this task programatically using C++.

   谁能告诉Windows API?完成这项任务?

    Can anyone tell the windows API  to achieve this task ?

感谢

Inmar   

Inmar   

推荐答案

嗨Inmar,

Hi Inmar,

您应该看看以下MSDN文章:

You should have a look at the following MSDN article:

编辑驱动器号分配

.

.

.

[更新]

我以某种方式添加了错误的链接....

这是正确的链接:

.

最美好的祝福,

-David Delaune
-David Delaune


有一篇文章 此处提供了用于映射和取消映射网络驱动器的库.
There is an article here that provides a library for mapping and unmapping network drives.


Hi

 谢谢回复.

   Thanks for the reply.

  链接http://msdn.microsoft.com/en-us/library/aa363908(VS.85).aspx 对我完成任务非常有用.

   The link http://msdn.microsoft.com/en-us/library/aa363908(VS.85).aspx is very useful for me to achieve the task.

谢谢

Inmar

 


这篇关于使用Win API删除驱动器号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆