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:
7
examples/ffi/win32.janet
Normal file
7
examples/ffi/win32.janet
Normal 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)
|
||||
|
Reference in New Issue
Block a user