win32 1.2.4 copy "win32: ^1.2.4" to clipboard
win32: ^1.2.4 copied to clipboard

outdated

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.

pub package Language

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!

705
likes
0
pub points
99%
popularity

Publisher

verified publisherwin32.pub

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

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

ffi

More

Packages that depend on win32