Created
April 12, 2013 16:12
-
-
Save RobBlackwell/5373163 to your computer and use it in GitHub Desktop.
Call the win32 API from SBCL on Windows
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ql:quickload :cffi) | |
(cffi:load-foreign-library "user32.dll") | |
(cffi:defctype hwnd :unsigned-int) | |
(cffi:defcfun ("MessageBoxA" message-box) :int | |
(wnd hwnd) | |
(text :string) | |
(caption :string) | |
(type :unsigned-int)) | |
(message-box 0 "hello" "world" 0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment