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"
This demo sample code shows how to develop using least privilege leveraging User Account Control.
It contains 3 projects, all developed in C#:
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\"