{"id":59822,"library":"gdi32-sys","title":"gdi32-sys","description":"FFI bindings to the Windows GDI32 library for graphics device interface functions.","status":"active","version":"0.2.0","language":"rust","source_language":null,"source_url":"https://github.com/retep998/winapi-rs","tags":["windows","ffi","gdi","graphics"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\ngdi32-sys = \"0.2.0\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add gdi32-sys","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"gdi32_sys","correct":"use gdi32_sys::*;"}],"quickstart":{"code":"use gdi32_sys::*;\n\nfn main() {\n    unsafe {\n        // Example: GetDeviceCaps\n        // let hdc = GetDC(std::ptr::null_mut());\n        println!(\"gdi32-sys provides raw Windows GDI bindings\");\n    }\n}","lang":"rust","description":"Minimal usage showing raw FFI import."},"warnings":[{"fix":"Use conditional compilation with #[cfg(target_os = \"windows\")].","message":"Requires Windows target; not available on other platforms.","severity":"gotcha","affected_versions":">=0.1.0"}],"env_vars":null,"search_vec":"'bind':5 'devic':13 'ffi':4,17 'function':15 'gdi':18 'gdi32':2,9 'gdi32-sys':1 'graphic':12,19 'interfac':14 'librari':10 'sys':3 'window':8,16","created_at":"2026-06-16T17:18:00.501612+00:00","updated_at":"2026-06-16T17:18:00.501612+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/gdi32-sys/","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}}