tinywinstr 0.0.5

A simple macro to help convert rust strings to what windows understands.
Documentation
  • Coverage
  • 0%
    0 out of 2 items documented0 out of 1 items with examples
  • Size
  • Source code size: 3.12 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 233.59 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 9s Average build duration of successful builds.
  • all releases: 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • emtek995/tinywinstr
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • emtek995

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