The purpose of this sample is to introduce developers to the mechanics of code access security. Code access security is a mechanism that grants/denies access to resources within a method call. For example, code written by Microsoft may be allowed to write to the disk while code from another company may be forbidden from accessing the disk. This control is enforced even if the code from both companies is used within a single application. This sample repeatedly attempts to access a disk file and an environment variable. Before each attempt, the code access permissions are changed to see the affect.
This sample list located in the Permissions directory of the NGWS SDK sample directories.
For Example:
C:\Program Files\NGWSSDK\Samples\Permissions
In order to properly build and run this sample, the following steps need to be performed prior to building and running the sample.
For Example:
C:\Program Files\NGWSSDK\Samples\Permissions\:>NMAKE All
In order to run this sample, follow the instructions listed below.
For Example:
C:\Program Files\NGWSSDK\Samples\Permissions\:>Permissions