1
0
mirror of https://github.com/janet-lang/janet synced 2025-09-08 13:56:09 +00:00

Add win32 ffi example.

This commit is contained in:
bakpakin
2022-08-14 15:40:09 -05:00
parent 9a6d2a7b32
commit c043b1d949
2 changed files with 8 additions and 0 deletions

7
examples/ffi/win32.janet Normal file
View File

@@ -0,0 +1,7 @@
(ffi/context "user32.dll")
(ffi/defbind MessageBoxA :int
[w :ptr text :string cap :string typ :int])
(MessageBoxA nil "Hello, World!" "Test" 0)