WinDeviceManagerLight icon indicating copy to clipboard operation
WinDeviceManagerLight copied to clipboard

Problems with admin privileges

Open albanvvv opened this issue 4 years ago • 3 comments

Hello, i'm currently working on a VB.NET app (VS2010) that uses your .dll to enable and disable devices. The problem is, even though i run my app with admin privileges, the enable/disable method of your library doesn't work and throws the following exception :

Unable to change Bluegiga Bluetooth Low Energy (COM7) device state, make sure you have administrator privileges

Do you have any solution for this ?

Thanks in advance

albanvvv avatar Dec 20 '21 11:12 albanvvv

Yeah, same problem for me

XpoizonEximus avatar Dec 29 '21 21:12 XpoizonEximus

Hello there,

I don't have any solution to your problem, I've just tried it and by launching VS2017 with admin privilege it's working so far for me. Maybe you could debug the ChangeIt function from HardwareHelperLib, the error message to check administrator privileges is actually a bit of a catch all, maybe you can check the exception thrown from it whether its actually privileges issues or something one.

Shinao avatar Jan 14 '22 18:01 Shinao

Hi there,

I know it's an old thread. However, make sure your application is built to the correct system architecture.. I had the same issue.. Got Unknown Error 0xe0000235 when calling SetupDiCallClassInstaller. After changing my platform target to x64 it works.

Hope this helps. :)

andidegn avatar Jul 18 '24 13:07 andidegn