Monday, May 25, 2009

Windows API Code Pack for .NET

Hold the phone—MS has released the Windows API Code Pack for Microsoft .NET Framework, a source code library for accessing a bunch of Windows features that aren't directly supported by .NET. It concentrates on new Windows 7 features, but there's support for some Vista APIs as well—including task dialogs.

Some of the supported APIs:
  • Win7 libraries
  • Known folders
  • Task dialogs
  • Vista and Win7 common dialogs
  • Win7 taskbar jump lists, icon overlays, and progress bars
I haven't done any work with this yet, but it certainly looks promising. The code pack home page is in the MSDN Code Gallery, and the download page is here. Enjoy.

1 comment:

Aybe said...

There is actually an issue when you try to use TaskDialog with Windows API Code Pack,

Unable to find an entry point name ‘TaskDialogIndirect’ in DLL ‘comctl32.dll’

I have a solution for this,

http://managedworld.wordpress.com/2009/06/23/unable-to-find-an-entry-point-name-taskdialogindirect-in-dll-comctl32-dll/