This repo contains a few sample projects to get you started with Rust for Windows.
clock
clock - An example of using Direct2D and various other Windows APIs.
create_window
create_window - A simple example of creating a desktop window with CreateWindowExA and friends.
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.
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.