Click here to Skip to main content
15,911,360 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello Dears!

I just want to determine if the C drive is encrypted(bit locker) or not using C#.I need to return Just true or false.

Many thanks!

What I have tried:

I tried searching for similar questions but with no use. So if you can please help!
Posted
Updated 9-Jun-17 22:18pm

1 solution

You can check that from Windows low-level APIs, or the C# package that you can install from NuGet WindowsAPICodePack, and then you can check for the registry settings to determine what is going on.

As suggested by the answer below, values of 1, 3, 5 are considered bitlocker in action, otherwise not.

Detect BitLocker programmatically from c# without admin - Stack Overflow[^]
 
Share this answer
 

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