tinywinstr

Crates.iotinywinstr
lib.rstinywinstr
version0.0.5
sourcesrc
created_at2021-10-23 12:42:16.922235
updated_at2021-10-24 20:10:53.457682
descriptionA simple macro to help convert rust strings to what windows understands.
homepage
repositoryhttps://github.com/emtek995/tinywinstr/
max_upload_size
id469866
size3,122
Edward Way (emtek995)

documentation

README

tinywinstr

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);
    }
}
Commit count: 10

cargo fmt