关于WNetAddConnection2函数的此MSDN库声明是什么意思? [英] What does this MSDN library statement about WNetAddConnection2 function mean?
本文介绍了关于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.
推荐答案
如果已阅读并理解 ^ ]条目正确.
您可以使用此功能将本地驱动器号(例如F :)映射到网络共享\\<计算机名称> \<共享>.用与您使用net use相同的方式.
这样,可以通过本地驱动器访问网络资源的内容.
回答OP问题能否将A:,B:,C:,D:或E:重定向到?":
它可以重定向本地系统不使用的任何驱动器.由于大多数系统可能会在本地硬盘驱动器上使用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屋!
查看全文