{"id":57138,"library":"winapi","title":"WinAPI","description":"Raw FFI bindings for all of Windows API.","status":"active","version":"0.3.9","language":"rust","source_language":null,"source_url":"https://github.com/retep998/winapi-rs","tags":["windows","ffi","api","system"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nwinapi = \"0.3.9\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add winapi","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"MessageBoxA","correct":"use winapi::um::winuser::MessageBoxA;"}],"quickstart":{"code":"use winapi::um::winuser::MessageBoxA;\nuse winapi::um::winnt::HWND;\n\nfn main() {\n    unsafe {\n        MessageBoxA(std::ptr::null_mut(), \"Hello\\0\".as_ptr() as *const i8, \"Title\\0\".as_ptr() as *const i8, 0);\n    }\n}","lang":"rust","description":"Display a Windows message box using raw FFI."},"warnings":[{"fix":"Use safe wrappers or ensure proper memory management.","message":"All functions are unsafe; requires careful handling of pointers and null-terminated strings.","severity":"gotcha","affected_versions":">=0.1.0"}],"env_vars":null,"search_vec":"'api':9,12 'bind':4 'ffi':3,11 'raw':2 'system':13 'winapi':1 'window':8,10","created_at":"2026-06-16T15:29:39.628149+00:00","updated_at":"2026-06-16T15:29:39.628149+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/retep998/winapi-rs","github":"https://github.com/retep998/winapi-rs","docs":"https://docs.rs/winapi/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["other"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-16","next_check":"2026-12-13","install_tag":null}}