Crates.io | tinywinstr |
lib.rs | tinywinstr |
version | 0.0.5 |
source | src |
created_at | 2021-10-23 12:42:16.922235 |
updated_at | 2021-10-24 20:10:53.457682 |
description | A simple macro to help convert rust strings to what windows understands. |
homepage | |
repository | https://github.com/emtek995/tinywinstr/ |
max_upload_size | |
id | 469866 |
size | 3,122 |
Tiny library for handling rust strings in windows.
#![cfg(target_os = "windows")]
#![windows_subsystem = "windows"]
use std::ptr::null_mut;
use tinywinstr::winstr;
use winapi::um::winuser::{MessageBoxW, MB_OK};
fn main() {
unsafe {
MessageBoxW(null_mut(), winstr!("My message"), winstr!("My title"), MB_OK);
}
}