Share via


Samples in the Windows SDK

.NET Framework (managed code) Samples

Microsoft .NET Framework (2.0, 3.0, and 3.5) samples are installed with the SDK documents, providing a mechanism to view and browse samples in context of the rest of the documents. These samples fall into three main categories:

  • Compiled sample applications users can download and run, ranging from Hello World type applications to more complex samples.

  • Tutorial-like examples, often presented in topics which teach how to build a sample application, taking users from a blank screen to a running application.

  • Code snippets which are embedded in topics throughout the doc set. The most common example of this type of code is found in API reference topics, which often contain small code blocks showing the syntax and usage of the members of an API. Doc teams generally own code snippets.

Sample document topics contain options for viewing and copying sample source files and for downloading sample projects as zip files to a user’s computer. Each sample topic contains at least one source code selection box that lists all the sample files. There is one box for each programming language provided by the sample. If a user is viewing this documentation on the Web instead of in local Help, a link to download the sample is provided.

The .NET Framework samples are also available outside the documents, in .zip format installed to Program Files\Microsoft SDKs\Windows\v6.1\samples. This content can be deselected during SDK setup. The .zip files provide a mechanism to extract large subsets of samples at once. The .zip files install as:

  • Cardspace_Samples.zip

  • CrossTechnologySamples.zip

  • FrameworkSamples.zip

  • WCFSamples.zip

  • WFSamples.zip

  • WPFSamples.zip

Win32 (unmanaged code) Samples

The Windows samples demonstrate Windows operating system features primarily using native code. These unmanaged Win32 samples are not included in the documentation. They are installed as loose files to subdirectories of \Program Files\Microsoft SDKs\Windows\v6.1\samples. This content can be deselected during SDK setup. A few samples with some managed code (PowerShell, Tablet PC) install with the Win32 samples. The Win32 samples directory layout for the Windows SDK for Windows Server 2008 and .NET Framework 3.5 is:

\Begin

\Com

\DataAccess

\Multimedia

\NetDS

\Security

\SysMgmt

\TabletPC

\Web

\WinBase

\WinUI

.NET Framework SDK Samples

Windows SDK Samples for Windows Vista

New to Windows Server 2008 SDK

See Also

Concepts

Building Samples from the Samples Directory

How to: View and Download Samples