Windows Base Samples 

The following table lists Windows Vista samples that cover a wide spectrum of core Windows functionality, such as threading, performance and diagnostics, computer restarts, memory, and handling events. They are installed under the Samples folder in the following path:

\Program Files\Microsoft SDKs\Windows\v6.0\samples

For build instructions and additional information about the samples, see the Readme.txt files and other documents in the sample folders.

Sample Description Location (under Samples)

Wait Chain Traversal Sample

Displays wait chains of all currently running threads.

WinBase\Debug\WCT

Windows Deployment Services Sample - Filter Provider

Enables client computers to boot to a Network Boot Program (NBP).

WinBase\Deployment\WindowsDeploymentServices\FilterProv

Windows Deployment Services Client API Image Enumeration Sample

Enumerates images on the Windows Deployment Services Image Server.

WinBase\Deployment\WindowsDeploymentServices\ImageEnum

Windows  Deployment Services Provider Sample

Shows how to create a DLL that replaces or runs side-by-side with the existing PXE Provider (BINL) on a Windows Deployment Services server.

WinBase\Deployment\WindowsDeploymentServices\SampProv

Transacted  File Sample

Demonstrates how to create a transaction using the Distributed Transaction Coordinator (DTC) interfaces.

WinBase\DTC\TransactedFile

Enumerate Trace GUIDs Sample

Views information about currently registered providers by tracing the GUIDs.

WinBase\EventTrace\EnumerateGuids

ETW New Provider API Demonstration

Shows simple usage of the Event Tracing for Windows (ETW) tracing facility.

WinBase\EventTrace\ETWProvider

Event Log Query Sample

Queries events from the event log.

WinBase\EventTrace\querylog

Event Log Pull Subscription Sample

Subscribes to events published into the event log using pull subscription.

WinBase\EventTrace\SubscriberPull

Event Log Push Subscription Sample

Subscribes to events published into the event log using push subscription.

WinBase\EventTrace\SubscriberPush

Trace Data Helper Sample

Provides abstract decoding implementation for Event Tracing for Windows (ETW) and Windows Trace Preprocessor (WPP) trace events.

WinBase\EventTrace\TraceDataHelper

Extended File Handle API Sample

Queries the file system with the new GetFileInformationByHandleEx method.

WinBase\IO\ExtendedFileAPIs

iSCSI Initiator Sample

Manages data transfers with the Microsoft iSCSI initiator service.

WinBase\iSCSI

Service Status Change Notification API Samples

Monitors starting and stopping of services.

WinBase\MonitorServices

Microsoft Remote Differential Compression (RDC) Sample

Copies a file over the network using Remote Differential Compression to reduce required bandwidth.

WinBase\RDC

Restart Manager-Aware Sample Applications

Enables console applications to be controlled by the Restart Manager.

WinBase\RestartManager\RmCuiApp\Cpp

Restart Manager Conductor Process API Sample

Sets shutdown and restart filter options for the Restart Manager.

Winbase\RestartManager\RmFilterApp

Restart Manager-Aware Sample Applications

Enables a Windows Forms application to be shut down and restarted by the Restart Manager.

WinBase\RestartManager\RmWinformApp\Cs

ShutdownBlockReason() API Sample

Enables applications to proactively specify reasons to block a shutdown.

WinBase\RestartManager\ShutdownBlockReasonTestApp\CPP

IMAPIv2  C# Sample

Contains source code intended only as a supplement to Microsoft IMAPI2 Help and online documentation. See these other materials for detailed information about Microsoft code samples.

WinBase\storage\IBurn

Imapi v2 Sample

Views new imaging capabilities.

WinBase\storage\optical\imapi2sample

Registration API Sample

Register Application Restart, Application Recovery, and memory blocks.

WinBase\WindowsErrorReporting\Registration

Performance Counter Provider Sample

Runs the new performance counter provider.

WinBase\WinNT\PerfCounter

Performance Logs & Alerts (PLA) API Sample

Collects performance data with performance logs and alerts.

WinBase\WinNT\PerfLogsAlert

Performance Logs and Alert VBScript Sample

Runs a VBScript version of performance logs and alerts.

Winbase\WinNT\PerfLogsAlert\vbs

vshadow

Description: vshadow is a sample requestor application geared towards hardware shadow copy scenarios. It can import hardware shadow copies, interact with writers and offers minimal backup and restore functionality.

Winbase\VSS\vshadow

SampleWriter

This sample demonstrates elementary VSS writer functionality and can be used as a foundation for more complex scenarios.

Winbase\VSS\SampleWriter

vssampleprovider

This is an example of a VSS hardware provider. Vsssampleprovider along with the virtual storage driver (virtualstorage.sys) and virtual storage controller (vstorcontrol.exe) located in the directory bin\vsstools directory can be used to emulate the functionality of a hardware provider.

This sample will work only on server SKU’s since hardware provider functionality is not available on client SKU’s.

Winbase\VSS\vsssampleprovider

See Also

Concepts

Multimedia Samples
Networking and Services Samples
Security Samples
Systems Management Samples
Windows UI Samples
XML Samples