Registry / other / user32-sys

user32-sys

JSON →
library0.2.0rscratesunverified

Contains function definitions for the Windows API library user32, with types and constants from winapi.

# Cargo.toml [dependencies] user32-sys = "0.2.0"
INSTALL
IMPORT
SIG · USER32-SYS
U
user32-sys
otherrustv0.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

MessageBoxA
use user32_sys::*;

Shows calling a Windows API function via user32-sys.

use user32_sys::MessageBoxA; use winapi::um::winuser::{MB_OK}; unsafe { MessageBoxA(std::ptr::null_mut(), "Hello\0".as_ptr() as *const i8, "Title\0".as_ptr() as *const i8, MB_OK); }
Debug
Known issues
gotchaRequires Windows target and unsafe code
fix
Ensure target_os = "windows" and wrap in unsafe block
affects: >=0.1.0
Upgrade
Version history
0.2.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
10
Resources