Click here to Skip to main content
14,929,999 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:

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
Updated 9-Feb-17 21:24pm
[no name] 8-Feb-17 10:53am
barneyman 8-Feb-17 19:21pm
admin elevation required?
Mike Marquet 10-Feb-17 3:25am

1 solution

I have found a solution :

I must set the "UAC Execution Level = requireAdministrator" in the project properties (Linker => Manifest File)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900