This repo contains samples that demonstrate the API used in Windows classic desktop applications.
Switch branches/tags
Nothing to show
Clone or download
Windows classic samples
Windows classic samples New Antimalware samples, update DPI samples
* Center the dialog, use Segoe UI 9
* Fix compiler warnings
* Fix GDI leak in WM_CTLCOLOR_STATIC handler
* Other style issues

DPIAwarenessPerMonitor: Deleted. Superseded by the DPIAwarenessPerWindow sample.

VolumeShadowCopyServiceWriter: Clarify that the sample must match the OS bitness.

New samples: AmsiStream and AmsiProvider to demonstrate antimalware interfaces.
Latest commit 1d363ff Mar 29, 2018

Windows classic samples

This repo contains samples that demonstrate the API used in Windows classic desktop applications.

These samples demonstrate the functionality and programming model for Windows and Windows Server. This repo contains Visual Studio solution (SLN) files for each sample, along with the source files, assets, resources, and metadata needed to compile and run the sample. For more info about the programming models, platforms, languages, and APIs demonstrated in these samples, check out the documentation on the Windows Dev Center.

Most of these samples were created for Windows 7, Windows 8.1 and/or Windows Server 2012 R2 using Visual Studio 2013, but some were created with earlier versions, or with specific SKU and other requirements. In many cases, the samples will also work on later versions than the ones indicated. If you cannot get a sample to work as expected, it might have platform, version, or SKU-specific requirements. If you have any issues with the samples, please provide feedback using the Issues list.

To get a copy of Windows, go to Downloads and tools.

To get a copy of Visual Studio, go to Visual Studio Downloads.

Other samples repos:

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact with any additional questions or comments.