Lubo Blagoev's Blog

My thoughts on software and technology

Windows Vista Developer Guidelines - A Must Read.


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.

Create elevated task

Currently rated 4.0 by 1 people

  • Currently 4/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

January 20, 2008 02:56 by lubo
Tags: , , ,
Categories:

Comments

January 25. 2010 15:42 by Computer Guides

Hey there...I've worked a lot on Windows Vista...and these guidelines should prove helpful but...as we all know that windows 7 is out!! would these guidelines apply to that too? if not can you provide me with guidelines for windows 7?

February 15. 2010 02:16 by lubo

Hi there,

Yes the guidelines apply to Windows 7 too.

Check this out:
Windows User Experience Interaction Guidelines:
www.microsoft.com/.../details.aspx

September 6. 2010 14:28 by jordan retro 5

I loved studying it. I will need to study a lot more on this matter.!!!.I admiring time and work you place in your blog site, since it really is naturally a person fantastic location the place I can locate good deal of beneficial information. Bookmarked and that i will share it. Many thanks a good deal!

Add comment


 

  Country flag

[b][/b] - [i][/i] - [u][/u]- [quote][/quote]


Live preview

September 9. 2010 19:31 by