Created
May 2, 2024 01:52
-
-
Save technoscavenger/a00a6332658d90c03a705a5fcfd60cd4 to your computer and use it in GitHub Desktop.
Zig Windows MessageBox
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
const win = @import("std").os.windows; | |
extern "user32" fn MessageBoxA(?win.HWND, [*:0]const u8, [*:0]const u8, u32) callconv(win.WINAPI) i32; | |
pub fn main() !void { | |
_ = MessageBoxA(null, "world!", "Hello", 0); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment