Registry / other / winapi

winapi

JSON →
library0.3.9rscratesunverified

Raw FFI bindings for all of Windows API.

# Cargo.toml [dependencies] winapi = "0.3.9"
INSTALL
IMPORT
SIG · WINAPI
W
winapi
otherrustv0.3.9
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 winapi::um::winuser::MessageBoxA;

Display a Windows message box using raw FFI.

use winapi::um::winuser::MessageBoxA; use winapi::um::winnt::HWND; fn main() { unsafe { MessageBoxA(std::ptr::null_mut(), "Hello\0".as_ptr() as *const i8, "Title\0".as_ptr() as *const i8, 0); } }
Debug
Known issues
gotchaAll functions are unsafe; requires careful handling of pointers and null-terminated strings.
fix
Use safe wrappers or ensure proper memory management.
affects: >=0.1.0
Upgrade
Version history
0.3.9latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
18 hits · last 30 days
node
18
Resources
winapi — cargo add winapi · libregistry