function ShowMessage(text, title, style)
local messageboxathread = effil.thread(function(text, title, style)
local ffi = require('ffi')
ffi.cdef("int MessageBoxA( void* hWnd, const char* lpText, const char* lpCaption, unsigned int uType); ")
ffi.C.MessageBoxA(nil, text, title, style and (style + 327680) or 327680)
end)(text, title, style)
lua_thread.create(function()
while true do
wait(0)
local status, err = messageboxathread:status()
if not err and status == "completed" then
return
end
end
end)
end