Click here to Skip to main content
15,894,720 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I need to retreive some more information about encrypted files on computers to make a full report.

Basicaly, I can identify if a file/directory is encrypted but I'd like to know who can access them (name and certificate thumbprint) and if there is a recovery agent set.

I need exactly the same information you can find in :
- Right click on a file and click Properties
- In General Tab, click Advanced ... at the bottom
- When the files is encrypted, Details button is enabled.
- The information appears after clicking it.

It seems I have to use the Win32 API. I found the following thread that makes me think about it :
http://www.dotnetmonster.com/Uwe/Forum.aspx/dotnet-interop/2391/NullReferenceException-after-a-Marshal-StructureToPtr[^]

Any idea ?

Thanks a lot for your suggestions
Posted
Updated 9-Feb-11 1:26am
v2

1 solution

It's part of the file system, so I would look at the System.IO namespace for that kind of stuff. The FileInfo.GetAccessControl method looks interesting.
 
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