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
Tales from beneath the WPF learning curve
using System.Diagnostics;
internal static FileVersionInfo GetLoadedModuleVersion(string name)
{
Process process = Process.GetCurrentProcess();
foreach (ProcessModule module in process.Modules)
{
if (module.ModuleName.ToLower() == name)
return module.FileVersionInfo;
}
return null;
}
internal static bool HaveComctl6()
{
FileVersionInfo verInfo = GetLoadedModuleVersion("comctl32.dll");
return verInfo != null && verInfo.FileMajorPart >= 6;
}
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity version="1.0.0.0" processorArchitecture="msil"
name="bitsy.exe" type="win32" />
<description>Description of Application</description>
<dependency>
<dependentAssembly>
<assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0"
processorArchitecture="*" publicKeyToken="6595b64144ccf1df" language="*" />
</dependentAssembly>
</dependency>
</assembly>
namespace MyApplication
{
public static class Globals
{
public static List<string> Args;
}
}
namespace MyApplication
{
public partial class App : Application
{
...
protected override void OnStartup(StartupEventArgs e)
{
base.OnStartup(e);
Globals.Args = new List();
for (int ix = 0; ix < e.Args.GetLength(0); ++ix)
Globals.Args.Add(e.Args[ix]);
}
}
}