Windows Vista UAC demo code: develop using least privilege

One of the new Windows Vista security features that might confuse developers is Windows User Account Control (UAC). In order to help developers develop UAC enabled applications Microsoft has released "Windows Vista UAC Demo Sample Code"

image

This demo sample code shows how to develop using least privilege leveraging User Account Control.

It contains 3 projects, all developed in C#:

    • GetLocalTime
    • SetLocalClock
    • RunElevatedCommand

In order to set the local clock you will need to enable UAC. This the different steps to achieve this are well explained in the solution.

Download the sample from the Microsoft Download Center and install using the .msi. By default it will install into

"C:\Users\<alias>\Documents\Microsoft Corporation\User Account Control Demo\"

 

 

Technorati tags: Windows Vista, User Account Control Demo

Comments

  • Anonymous
    June 05, 2007
    Can't wait to see the VB6 version of this.  Sadly it'll probably have to come from the community.