Raw FFI bindings for all of Windows API.
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.
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);
}
}
Upgrade
Version history
Breaking-change detection hasn't run for this library yet.
Audit
Security & dependencies
CVE tracking and dependency tree are planned for a later release.