Skip to content

Latest commit

 

History

History
 
 

examples

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

A few sample projects to help you get started with the windows crate.

clock

clock - An example of using Direct2D and various other Windows APIs.

com_uri

com_uri - A simple example of using the CreateUri function.

enum_windows

enum_windows - An example of using the EnumWindows function.

event

event - An example using the kernel event object.

message_box

message_box - An example using the age-old MessageBox function.

ocr

ocr - An example using the Windows.Graphics.Imaging, Windows.Media.Ocr, and Windows.Storage APIs to convert an image into text.

overlapped

overlapped - An example using various Win32 APIs to create and write to a new file.

rss

rss - An example using the Windows.Foundation.Uri and Windows.Web.Syndication APIs.

simple

simple - An example of including bindings without a separate bindings crate when you only need to use a very small number of Windows APIs.

webview2

webview2 - An example which runs Microsoft.Web.WebView2.Core in a standalone frame using pre-release WinRT APIs. If you want to run this program, you will need the prerequisites for the WebView2 runtime installed on your machine.

win2d

win2d - An example using dependencies like Win2D where that component provides its own winmd for describing its API surface as well as a runtime DLL that must be deployed with the app. It is further complicated as Win2D requires the VCRTForwarders in order to load.

xml

xml - An example of using the Windows.Data.Xml.Dom API for parsing XML.