Last active
November 26, 2020 17:43
-
-
Save santarinto/6783808d362d3a82b6ef973b6c412185 to your computer and use it in GitHub Desktop.
ffi1.php
This file contains hidden or 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
<?php | |
//language=cpp | |
$headers = <<<'cpp' | |
int MessageBoxA(void* hwnd, const char* lpText, const char* lpCaption, unsigned int uType); | |
cpp; | |
$ffi = \FFI::cdef($headers, 'User32.dll'); | |
$ffi->MessageBoxA(null, 'title', 'descr', 0); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment