Netserverdiskenum在Windows 10下失败了 [英] Netserverdiskenum failed under windows 10
本文介绍了Netserverdiskenum在Windows 10下失败了的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我尝试调用NetServerDiskEnum函数来获取本地计算机上的驱动器列表,但我总是收到访问被拒绝。
这种情况发生在Windows 10下,但在Windows 7及以下版本下工作!
有什么想法吗?
我尝试过:
$ 10 $ b windows 10下的NOK
确定在Windows 7及以下
Hi,
I try to call NetServerDiskEnum function to get list of drives on local machine, but I receive always "access denied".
This happen under Windows 10, but works under Windows 7 and below !
Any idea ?
What I have tried:
NOK under windows 10
OK under windows 7 and below
推荐答案
我找到了解决方案:
我必须设置 UAC执行级别= requireAdministrator在项目属性中(链接器=>清单文件)
I have found a solution :
I must set the "UAC Execution Level = requireAdministrator" in the project properties (Linker => Manifest File)
这篇关于Netserverdiskenum在Windows 10下失败了的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文