With the release of .NET 3.0, the new Windows API calls available with Windows Vista are not available from the .NET Framework. However, the Windows SDK contains a sample with the name Vista Bridge that wraps native API calls to make them available from a .NET library. You can use this library within your Windows Forms or WPF applications.
After installing the Windows SDK, you can find the Vista Bridge sample in the .zip file <program files>\ Microsoft SDKs\Windows\v6.0\Samples\CrossTechnologySamples.zip. Extract the .zip file to get three projects: VistaBridgeLibrary, , and VistaBridgeDemoApp. The VistaBridgeLibrary project contains several classes and controls.