{"id":62930,"library":"ole32-sys","title":"Ole32 Sys","description":"Contains function definitions for the Windows API library ole32. See winapi for types and constants.","status":"active","version":"0.2.0","language":"rust","source_language":null,"source_url":"https://github.com/retep998/winapi-rs","tags":["windows","ole32","com","ffi"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nole32-sys = \"0.2.0\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add ole32-sys","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"CoInitializeEx","correct":"use ole32_sys::CoInitializeEx;"}],"quickstart":{"code":"use ole32_sys::CoInitializeEx;\n\nfn main() {\n    unsafe {\n        CoInitializeEx(std::ptr::null_mut(), 0);\n    }\n}","lang":"rust","description":"Initialize COM on the calling thread."},"warnings":[{"fix":"Ensure proper COM initialization and cleanup with CoUninitialize.","message":"Requires unsafe code; incorrect usage can cause undefined behavior.","severity":"gotcha","affected_versions":">=0.1.0"}],"env_vars":null,"search_vec":"'api':9 'com':20 'constant':17 'contain':3 'definit':5 'ffi':21 'function':4 'librari':10 'ole32':1,11,19 'see':12 'sys':2 'type':15 'winapi':13 'window':8,18","created_at":"2026-06-17T16:37:48.260603+00:00","updated_at":"2026-06-17T16:37:48.260603+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/ole32-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-17","next_check":"2026-12-14","install_tag":null}}