{"id":60290,"library":"wil","title":"WIL","description":"The Windows Implementation Libraries (WIL) is a header-only C++ library providing readable type-safe C++ interfaces for common Windows coding patterns.","status":"active","version":"1.0.260126.7","language":"cpp","source_language":null,"source_url":null,"tags":["windows","header-only","resource-management","com"],"install":[{"cmd":"vcpkg install wil","lang":"bash","label":"vcpkg"},{"cmd":"# CMakeLists.txt\nfind_package(wil CONFIG REQUIRED)\ntarget_link_libraries(main PRIVATE WIL::WIL)","lang":"cmake","label":"CMake"}],"dependencies":[],"imports":[{"symbol":"wil/resource.h","correct":"#include <wil/resource.h>"}],"quickstart":{"code":"#include <wil/resource.h>\n#include <iostream>\n\nint main() {\n    wil::unique_hfile file(CreateFileA(\"test.txt\", GENERIC_READ, FILE_SHARE_READ, nullptr, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, nullptr));\n    if (file) std::cout << \"File opened\\n\";\n    return 0;\n}","lang":"cpp","description":"Minimal WIL unique_hfile usage"},"warnings":[],"env_vars":null,"search_vec":"'c':12,19 'code':24 'com':33 'common':22 'header':10,28 'header-on':9,27 'implement':4 'interfac':20 'librari':5,13 'manag':32 'pattern':25 'provid':14 'readabl':15 'resourc':31 'resource-manag':30 'safe':18 'type':17 'type-saf':16 'wil':1,6 'window':3,23,26","created_at":"2026-06-16T19:24:24.401839+00:00","updated_at":"2026-06-16T19:24:24.401839+00:00","problems":[],"ecosystem":"vcpkg","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"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}}