-
-
Save emekoi/d3fd0581ae93e0b4f7695789cf42ad7b to your computer and use it in GitHub Desktop.
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
// use @import("std").os.windows; | |
pub const HANDLE = *c_void; | |
pub const LPCTSTR = [*]const u8; | |
pub const UINT = c_uint; | |
pub const HINSTANCE = *@OpaqueType(); | |
pub const PWSTR = [*]u16; | |
pub const INT = c_int; | |
extern "user32" stdcallcc fn MessageBoxA(hWnd: ?HANDLE, lpText: ?LPCTSTR, lpCaption: ?LPCTSTR, uType: UINT) c_int; | |
export fn WinMain(hInstance: HINSTANCE, hPrevInstance: HINSTANCE, lpCmdLine: PWSTR, nCmdShow: INT) INT { | |
_ = MessageBoxA(null, c"hello", c"title", 0); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment