All-In-One Windows 7 Code Samples

 

Introduction

Windows 7 provides many new programmable features, e.g. the new Taskbar, the Shell Library, the service trigger-start feature. The All-In-One Windows 7 code samples demonstrate the typical programming topics about Windows 7. These topics are either frequently asked in MSDN forums and Microsoft Support, or are requested by many developers via our code sample request function. We want to alleviate the frustration felt by developers when they are leveraging Windows 7 new features in applications.

 

 

Visual Studio 2008 Code Samples

Sample Description Download ReadMe
CppWin7Direct2D The VC++ code sample demonstrates using the Direct2D API in Windows 7. Download ReadMe.txt
CppWin7ShellLibrary The VC++ code sample demonstrates how to create, open, delete, rename and manage shell libraries in Windows 7. It also shows how to add, remove and list folders in a shell library. Download ReadMe.txt
CppWin7TaskbarAppID The VC++ code sample demostrates how to allow an application to group its associated processes and windows under a single taskbar button by setting process level Application User Model IDs (AppUserModelIDs or AppIDs) and modifying the AppIDs for a specifi Download ReadMe.txt
CppWin7TaskbarOverlayIcons This example demostrates how to initialize Windows 7 Taskbar list instance, set and clear Taskbar Overlay Icons using ITaskbarList3 related APIs. Download ReadMe.txt
CppWin7TaskbarProgressBar This example demostrates how to initialize Windows 7 Taskbar list instance, set Taskbar ProgressBar state and progress value using ITaskbarList3 related APIs. Download ReadMe.txt
CppWin7TriggerStartService This VC++ code sample shows how to create a trigger-start Windows Service that starts when a generic USB disk or IP becomes available. Service Trigger Start is a new feature in Windows 7. Download ReadMe.txt
CSWin7Direct2D The VC# code sample demonstrates using the Direct2D API in Windows 7. Download ReadMe.txt
CSWin7ShellLibrary The VC# code sample demonstrates how to create, open, delete, rename and manage shell libraries in Windows 7. It also shows how to add, remove and list folders in a shell library. Download ReadMe.txt
CSWin7TaskbarAppID The VC# code sample demostrates how to allow an application to group its associated processes and windows under a single taskbar button by setting process level Application User Model IDs (AppUserModelIDs or AppIDs) and modifying the AppIDs for a specific Download ReadMe.txt
CSWin7TaskbarJumpList This example demostrates how to set register Jump List file handle, add items into Recent/Frequent known categories, add/remove user tasks, and add items/links into custom categories in Windows 7 Taskbar Jump List. Download ReadMe.txt
CSWin7TaskbarOverlayIcons This example demostrates how to initialize Windows 7 Taskbar list instance, set and clear Taskbar Overlay Icons using ITaskbarList3 related APIs. Download ReadMe.txt
CSWin7TaskbarProgressbar This example demostrates how to initialize Windows 7 Taskbar list instance, set Taskbar ProgressBar state and progress value using ITaskbarList3 related APIs. Download ReadMe.txt
CSWin7TaskbarThumbnail This example demostrates how to set Taskbar Thumbnail previews, change Thumbnail previews order, set Thumbnail toolbars using Taskbar related APIs in Windows API Code Pack. Download ReadMe.txt
CSWin7TriggerStartService This VC# code sample shows how to create a trigger-start Windows Service that starts when a generic USB disk or IP becomes available. Service Trigger Start is a new feature in Windows 7. Download ReadMe.txt
VBWin7Direct2D The VB code sample demonstrates using the Direct2D API in Windows 7. Download ReadMe.txt
VBWin7ShellLibrary The VB code sample demonstrates how to create, open, delete, rename and manage shell libraries in Windows 7. It also shows how to add, remove and list folders in a shell library. Download ReadMe.txt
VBWin7TaskbarAppID The VB code sample demostrates how to allow an application to group its associated processes and windows under a single taskbar button by setting process level Application User Model IDs (AppUserModelIDs or AppIDs) and modifying the AppIDs for a specific Download ReadMe.txt
VBWin7TaskbarJumpList This example demostrates how to set register Jump List file handle, add items into Recent/Frequent known categories, add/remove user tasks, and add items/links into custom categories in Windows 7 Taskbar Jump List. Download ReadMe.txt
VBWin7TaskbarOverlayIcons This example demostrates how to initialize Windows 7 Taskbar list instance, set and clear Taskbar Overlay Icons using ITaskbarList3 related APIs. Download ReadMe.txt
VBWin7TaskbarProgressbar This example demostrates how to initialize Windows 7 Taskbar list instance, set Taskbar ProgressBar state and progress value using ITaskbarList3 related APIs. Download ReadMe.txt
VBWin7TaskbarThumbnail This example demostrates how to set Taskbar Thumbnail previews, change Thumbnail previews order, set Thumbnail toolbars using Taskbar related APIs in Windows API Code Pack. Download ReadMe.txt
VBWin7TriggerStartService This VB code sample shows how to create a trigger-start Windows Service that starts when a generic USB disk or IP becomes available. Service Trigger Start is a new feature in Windows 7. Download ReadMe.txt

 

Visual Studio 2010 Code Samples

Sample Description Download ReadMe
CppWin7MultiTouch The code sample demonstrates using Windows 7 multi-touch API to create a simple but modern image viewer that supports multi-touch Download ReadMe.txt

 

 

Download all code samples: http://1code.codeplex.com/releases

 

Submit your request of Windows 7 code samples (Guidance)