2.5 KiB
2.5 KiB
page_type, languages, products, name, urlFragment, description, extendedZipContent
| page_type | languages | products | name | urlFragment | description | extendedZipContent | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| sample |
|
|
Personal Data Encryption sample (Win32) | PersonalDataEncryption | Demonstrates the usage of Personal Data Encryption (Windows Data Protection). |
|
Personal Data Encryption sample
Shows how to use Personal Data Encryption for protecting user files and memory buffers.
Personal Data Encryption can protect data either while a user is signed out ("Level 1" or "L1") or while a system is locked ("Level 2" or "L2").
The sample shows the following:
- Marking a folder so that all new files are protected at a particular level, or removing protection.
- Protecting a file at a particular level, or removing protection.
- Protecting a memory buffer at a particular level, or removing protection.
Note This sample requires Visual Studio to build and Windows 10 to execute.
To obtain information about Windows development, go to the Windows Dev Center
To obtain information about Microsoft Visual Studio and the tools for developing Windows apps, go to Visual Studio
Related topics
Reference
UserDataProtectionManager class
Related samples
System requirements
- Windows 10 Version 1903 (build 18362) or higher
Build the sample
To build this sample:
- Start Visual Studio and select File > Open > Project/Solution.
- Go to the directory named for the sample, and double-click the Microsoft Visual Studio Solution (.sln) file.
- Press F7 or use Build > Build Solution to build the sample.
Run the sample
The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it.
Deploying the sample
- Select Build > Deploy Solution.
Deploying and running the sample
- Set the Debugging options to specify the desired command line options.
- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or select Debug > Start Without Debugging.