SecureString Application Sample
This sample demonstrates uses of theclass.
For information about using the samples, see the following topics:
To build the sample using the command prompt
Open the Command Prompt window and navigate to one of the language-specific subdirectories under the SecureStringConsoleDemo directory. For information about required settings and the SDK Command Prompt, see.
Type msbuild SecureStringConsoleDemoCS.sln or msbuild SecureStringConsoleDemoVB.sln, depending on your choice of programming language, from one of the language-specific subdirectories.
To build the sample using Visual Studio
Open Windows Explorer and navigate to one of the language-specific subdirectories under the SecureStringConsoleDemo directory.
Double-click the SecureStringConsoleDemoCS.sln file or SecureStringConsoleDemoVB.sln file, depending on your choice of programming language, to open the file in Visual Studio.
On the Build menu, click Build Solution.
To run the sample
Navigate to the directory that contains the new executable in Windows Explorer.
Double-click the SecureStringConsoleDemo.exe file to open it from Windows Explorer.
The sample includes two files, doctorFile.txt and nurseFile.txt, that allow you to test the capabilities of type SecureString. Both files contain instructions for creating a user account, NurseA, on your computer, and for permitting or denying access to doctorFile.txt and nurseFile.txt. Follow these instructions, then log onto your computer under the new user account. NurseA should be permitted access to nurseFile.txt, but denied access to doctorFile.txt.