microsoft/wil
View on GitHub ↗ ★ 2,997 C++
Windows Implementation Library
26 mentions on Hacker News by 10 people: 4 stories, 22 comments · first 2019-05-09 · latest 2026-06-14
20082026
-
Use Windows Implementation Library to clean things up and get some RAII on handle types: https://github.com/microsoft/wil
comment by delta_p_delta_x · 2026-06-14 · in Windows 1.0 and the WinAPI, 40 Years Later -
…the taste for good readable code'. I'm of course referring to the Windows Implementation Library: https://github.com/microsoft/wil This is explicitly an effort from MS WinDev to make Windows C++ code safer. User-mode applications writing…
comment by delta_p_delta_x · 2026-06-09 · in The beauty and simplicity of the good old C-style void* in C++ -
▲ 3
Microsoft/Wil: Windows Implementation Librarystory by Tomte · 2026-05-15 · 0 comments
-
…[3]: https://learn.microsoft.com/en-gb/cpp/c-runtime-library/sal-... [4]: https://github.com/microsoft/wil [5]: https://github.com/Azure/azure-sdk-for-cpp [6]: https://learn.microsoft.com/en-gb/windows/win32/cfapi/build-...
comment by delta_p_delta_x · 2026-02-15 · in I fixed Windows native development -
…is a massive improvement in ergonomics and safety when writing native Windows platform code. [1]: https://github.com/microsoft/wil
comment by delta_p_delta_x · 2026-02-15 · in I fixed Windows native development -
…pure C++. Combined with the Windows Implementation Library[1] I was writing fast, modern code. [1]: https://github.com/microsoft/wil
comment by delta_p_delta_x · 2026-01-29 · in Winapp, the Windows App Development CLI -
…the project. Additional helpers are regularly contributed to complimentary projects such as https://github.com/microsoft/wil/ . From https://github.com/microsoft/cppwinrt/issues/1289#issuecomme...
comment by pjmlp · 2025-11-07 · in A Note on Fil-C -
…and will happen. Let RAII help you, let the mighty close-scope token `} ` be your best friend. [1]: https://github.com/microsoft/wil/blob/1f20cd086e07b9be54e70d... [2]: https://github.com/microsoft/wil
comment by delta_p_delta_x · 2025-10-10 · in Finding a VS Code Memory Leak -
In that case, make yourself a favour and use WIL, aka Windows Implementation Library. https://github.com/microsoft/wil
comment by pjmlp · 2025-05-11 · in I built a native Windows Todo app in pure C (278 KB, no frameworks) -
…because MinGW doesn't know about nice MSVC-specific stuff like SAL annotations[4]. [2]: https://github.com/microsoft/wil [3]: https://github.com/Azure/azure-sdk-for-cpp [4]: https://learn.microsoft.com/en-gb/cpp/c-runtime-library/sal-...
comment by delta_p_delta_x · 2025-04-23 · in MinC Is Not Cygwin -
…Library[1]. I'm also certain Windows and macOS graphics drivers are written in C++. [1]: https://github.com/microsoft/wil
comment by delta_p_delta_x · 2024-12-08 · in Flappy Bird in 1000 lines of C -
…like Java, C#, Go, or Python. [1]: https://learn.microsoft.com/en-us/windows/win32/api/cfapi/ [2]: https://github.com/microsoft/wil/issues/117
comment by delta_p_delta_x · 2024-07-24 · in How to develop on Windows: comparing native, MinGW, Cygwin, WSL -
…taken by VS team. Ah, nowadays WIL is probably the best approach when having only to consume COM. https://github.com/microsoft/wil
comment by pjmlp · 2024-04-20 · in C-Macs – a pure C macOS application -
…really use it. They use it a lot , though there are attempts at obsoleting some of it[0]. [0]: https://github.com/microsoft/wil
comment by pianoben · 2022-10-06 · in RFC: C++ Buffer Hardening -
…of C++ language features that are specific to code that runs in kernel mode. And then there is WIL, https://github.com/microsoft/wil https://community.osr.com/discussion/291326/the-new-wil-libr... > First off, let me point out that this…
comment by pjmlp · 2022-03-12 · in RISC-V J extension – Instructions for JITs -
…according to its GitHub page. ATL doesn't seem to have much done to it in the last decade or so. https://github.com/microsoft/wil
comment by andyjohnson0 · 2022-01-30 · in COM+ Revisited -
…can't be used anyway and auto pointers aren't really that much of a concern at the kernel level https://github.com/microsoft/wil "Ah, but that isn't used on the Windows kernel" would be the expected reply, well…
comment by pjmlp · 2021-12-14 · in ToaruOS 2.0 -
…VC++) and .NET/COM (WinRT is basically COM with some extras). Modern kernel code makes use of WIL. https://github.com/microsoft/wil
comment by pjmlp · 2021-09-16 · in Linux Sucks 2021 – The End of Linux Is Nigh [video] -
…stuck in the ways of Windows XP. https://docs.microsoft.com/en-us/cpp/cppcx/exceptions-c-cx?v... https://github.com/microsoft/wil/blob/5a21cac10640f54b7ef886... https://docs.microsoft.com/en-us/windows/uwp/cpp-and-winrt-a...
comment by pjmlp · 2021-08-30 · in Away from Exceptions: Errors as Values -
▲ 1
Windows Implementation Libraries (WIL)story by pjmlp · 2021-07-29 · 0 comments
-
We use this internally to help prevent leaks: https://github.com/Microsoft/wil/wiki/RAII-resource-wrappers
comment by fassssst · 2021-07-26 · in Finding Windows HANDLE leaks, in Chromium and others -
…team then ignores C++/WinRT on their own samples, and use their own internal WIL framework instead. https://github.com/microsoft/wil So you get some samples on MSDN now that after being rewritten from C++/CX into C++/WinRT, are also…
comment by pjmlp · 2021-07-23 · in “I would buy a Mac today if I was not working at Microsoft” (2004) -
…Windows source code to do similar things, which was recently made public and open source on GitHub: https://github.com/Microsoft/wil/wiki
comment by contextfree · 2019-11-06 · in TheForger's Win32 API Programming Tutorial -
they have this now: https://github.com/microsoft/wil
comment by rogerclark · 2019-11-06 · in TheForger's Win32 API Programming Tutorial -
▲ 148
Windows Implementation Libraries: type-safe C++ interfaces for Windows patternsstory by ingve · 2019-05-11 · 25 comments
-
▲ 1
Windows Implementation Libraries (WIL)story by MikusR · 2019-05-09 · 1 comment