关于WNetAddConnection2函数的此MSDN库声明是什么意思? [英] What does this MSDN library statement about WNetAddConnection2 function mean?

查看:108
本文介绍了关于WNetAddConnection2函数的此MSDN库声明是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以下语句来自MSDN库:


WNetAddConnection2函数建立到网络资源的连接.该功能可以将本地设备重定向到网络资源.


该功能可以将本地驱动器重定向到网络资源".

The following statement is from MSDN library:


The WNetAddConnection2 function makes a connection to a network resource. The function can redirect a local device to the network resource.


What does "The function can redirect a local drive to the network resource." mean.

推荐答案

如果已阅读并理解
它可以重定向本地系统不使用的任何驱动器.由于大多数系统可能会在本地硬盘驱动器上使用C:驱动器,因此无法将其重定向.如果您的系统中有CD/DVD驱动器,则该驱动器号也可能正在使用驱动器号D :,因此也无法重定向.
If read and understand the MSDN[^] entry correctly.

You can use this function to map a local drive letter for example F: to an network share \\<computer name>\<share>. In the same manner as you would use the net use.
This way the content of the network resource to be accessed through the local drive.

Answer OP question "Can it redirect A:, B:, C:,D: or E: to?":
It can redirect any drive not is use by the local system. As most systems will probably have a C: drive for the local hard drive it cannot be redirected. If you have a CD/DVD drive in your system it also has a drive letter in use, D: probably, so this cannot be redirected either.


这篇关于关于WNetAddConnection2函数的此MSDN库声明是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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