#string #tiny #windows #understand #convert-string #help #macro

tinywinstr

A simple macro to help convert rust strings to what windows understands

5 releases

0.0.5 Oct 24, 2021
0.0.4 Oct 24, 2021
0.0.3 Oct 24, 2021
0.0.2 Oct 24, 2021
0.0.1 Oct 23, 2021

#206 in Windows APIs

MIT license

3KB

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);
    }
}

No runtime deps