large Flutter Favorite logosmall Flutter Favorite logo

win32 3.1.2 icon indicating copy to clipboard operation
win32: ^3.1.2 copied to clipboard

A Dart library for accessing common Win32 APIs using FFI. No C required!


The package includes a number of examples in the example subdirectory. These examples use the Win32 API for all UI display and (unless mentioned) do not require Flutter.

hello.dartBasic Petzoldian "hello world" Win32 app
bluetooth.dartDemonstrate enumerating Bluetooth devices
bluetoothle.dartEnumerate Bluetooth LE (Low Energy) devices
calendar.dartGets information about the calendar from a WinRT API
commdlg.dartDemonstrates using the color chooser common dialog box
credentials.dartAdds a credential to the store and retrieves it
customtitlebar.dartDemonstrates creation of owner-draw title bar region
customwin.dartDisplays a non-rectangular window
devices.dartUses volume management APIs to list all disk devices
dialog.dartCreate a custom dialog box in code
dialogshow.dartCreates a common item dialog (file picker) using COM
diskinfo.dartUse DeviceIoControl() for direct device operations
dump.dartUse debugger libraries to print DLL exported functions
dynamic_load.dartDemonstrate loading a DLL and calling it at runtime
explorer\Example Flutter app that uses Win32 file picker APIs
filever.dartGetting file version information from the file resource
gamepad.dartShow which gamepads are connected
guid.dartCreates a globally unique identifier (GUID)
idispatch.dartDemonstrates calling a method using IDispatch
knownfolder.dartRetrieves known folders from the current user profile
magnifier.dartProvides a magnifier window using the Magnification API
manifest\Demonstrates the use of app manifests for compiled apps
midi.dartDemonstrates MIDI playback using MCI commands
modules.dartEnumerates all loaded modules on the current system
monitor.dartUses DDC and monitor-config API to get monitor caps
msgbox.dartDemonstrates a MessageBox from the console
notepad\Lightweight replica of the Windows notepad applet
paint.dartDemonstrates simple GDI drawing and min/max window sizing
pipe.dartShows use of named pipes for interprocess communication
play_sound.dartPlays a WAV file through the Windows PlaySound API
printer_list.dartEnumerate available printers on the Windows system
printer_raw.dartSends RAW data directly to a Windows Printer
registry.dartDemonstrates querying the registry for values
screenshot.dartTakes a screenshot of the current desktop
scroll.dartExample of horizontal and vertical scrolling text window
sendinput.dartSends keyboard and mouse input to another window
serial.dartDemonstrates serial port management
setupapi.dartShow using setup APIs to retrieve device interfaces
shortcut.dartDemonstrates creating a Windows shell link
snake.dartSnake game using various GDI features
speech.dartUse Windows speech engine for text-to-speech
sysinfo.dartExamples of getting device information from native C APIs
taskdialog.dartDemonstrates using modern task dialog boxes
tetris\main.dartPort of an open-source Tetris game to Dart
vt.dartShows virtual terminal sequences
wallpaper.dartShows what wallpaper and background color are set
wasapi.dartDemonstrates sound generation with WASAPI library
window.dartEnumerates open windows and basic window manipulation
winmd.dartInterrogate Windows Runtime types
wmi_perf.dartUses WMI to retrieve performance counters
wmi_wql.dartUses WMI to retrieve information using WQL
wsl.dartRetrieve information from a WSL instance through APIs
pub points


verified publisher

A Dart library for accessing common Win32 APIs using FFI. No C required!

Repository (GitHub)
View/report issues


API reference


Icon for licenses.BSD-3-Clause (LICENSE)




Packages that depend on win32