As a software developer you should have noticed that Windows Vista requires special attention. Even if you are building application targeted for Windows XP you should always test your code against the new operating system since it is very likely that your app will be used on Vista. That's why you should do the effort and read the Windows Vista Developer Guidelines:
Great articles, really great. I can't never express enough my feelings when I read these very well prepared, highly detailed articles for Windows development. This is the reason why I am a Microsoft Windows Developer and that I am very excited about it. Having such articles in your hands simplifies things, makes your job easier and produces beautiful results.
If you don't have the time and desire to read all of them you can always come back later and use them as reference in your work. Still I highly recommend reading the Windows Vista Application Development Requirements for User Account Control Compatibility. Taking into account the User Account Control is mandatory for any Windows Vista development. UAC is one of the most discussed feature of Vista.
Recently I was reading through the UAC compatibility guidelines and I noticed one thing. An application is blocked if it requires elevation on user logon.
Elevations are blocked in the User's Logon Path
Applications that start when the user logs on and require elevation are now blocked in the logon path. Without blocking applications from prompting for elevation in the user's log on path, both standard users and administrators would have to respond to a User Account Control dialog box on every log on. Windows Vista notifies the user if an application has been blocked by placing an icon in the system tray. The user can then right-click this icon to run applications that were blocked from prompting for elevation as the user logged on. The user can manage which startup applications are disabled or removed from this list by double-clicking on the tray icon.
If you ever want to start an application with elevated privileges at logon you should use Vista's Task Scheduler. In the UAC article there is a sample which shows how to do that programmatically. Manually scheduling an application is very simple. If you select the checkbox labeled Run with highest privileges, Task Scheduler will run the task using an elevated privileges token rather than a least privileges (UAC) token. This way you will not even receive prompt for consent since Task Scheduler is already elevated.

Currently rated 4.0 by 1 people
- Currently 4/5 Stars.
- 1
- 2
- 3
- 4
- 5