Code samples

Learn how to build great apps for Windows by experimenting with our samples. These samples show you how features work and help you jumpstart your own apps. For our latest samples, visit Windows on GitHub.
UWP icon
Universal Windows app samples for Windows 10

Download the Universal Windows app samples for Windows 10, or explore them on GitHub. These samples are designed to run on all devices that support the Universal Windows Platform (UWP), and provide API usage patterns for platform features.

Games icon

Windows game samples

Download and explore samples that demonstrate game programming techniques and technologies. These Windows 8.1 samples will get you started developing games with DirectX, XAML, or HTML5.

Desktop icon

Windows desktop application samples

Download the desktop application code samples for examples of Win32 and .NET development. These samples cover a wide array of areas, ranging from networking to the UPnP framework.

IoT icon

Windows IoT samples

Download code samples to help you get familiar with developing for Windows 10 IoT (Internet of Things) editions. Samples provide example code for a variety of Windows IoT-based devices running both Windows 10 IoT Core and Windows 8.1.

Windows IoT samples
Screen shot of FaceTheremin

Have some coding fun

Get samples for exploring the lighter side of Windows 10 development.

More Microsoft code samples

Windows 8.1 app samples

These samples are designed to run on Windows 8.1 and/or Windows Phone 8.1, and demonstrate the programming models, features, and components available in Windows 8.1.

Microsoft Azure code samples

Interested in development with Azure services?

Office 365 code samples

Interested in integrating Office 365 data and services into your app?

Windows driver code samples

Interested in writing drivers for Windows?

Was this page helpful?
Additional feedback?
Thank you! We appreciate your feedback.
Follow us