win32 1.2.4 win32: ^1.2.4 copied to clipboard
A Dart library for accessing common Win32 APIs using FFI. No C required!
A package that wraps some of the most common Win32 API calls using FFI to make them accessible to Dart code without requiring a C compiler or the Windows SDK.
Perhaps of more than the APIs themselves, this package provides a variety of instructive examples for more complex FFI usage scenarios.
Requirements #
This package assumes the Dart 64-bit compiler.
Usage #
A simple Petzoldian Hello World example can be found in the example
subdirectory. This example demonstrates creating a Win32 window and responding
to common messages such as WM_PAINT
through a WindowProc
callback function.
To run it, type:
dart example\hello.dart
This should display a window with a text message.
This can be compiled into a standalone Win32 executable by running:
dart2native example\hello.dart -o example\bin\hello.exe
More complex examples
can found in the example
subdirectory.
Features and bugs #
Please file feature requests and bugs at the issue tracker. This is a hobby project, and should not be viewed as having the same level of quality assurance as an official package from the Dart team. I'm a product manager having fun on my weekends!