Hacker GitHub

← All repos

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

Mentions per year 26 mentions · busiest year 2021 (6)
20082026
  1. 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
  2. …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…
  3. …[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
  4. …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
  5. …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
  6. …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
  7. …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
  8. In that case, make yourself a favour and use WIL, aka Windows Implementation Library. https://github.com/microsoft/wil
  9. …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
  10. …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
  11. …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
  12. …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
  13. …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
  14. …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…
  15. …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
  16. …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
  17. …VC++) and .NET/COM (WinRT is basically COM with some extras). Modern kernel code makes use of WIL. https://github.com/microsoft/wil
  18. …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
  19. We use this internally to help prevent leaks: https://github.com/Microsoft/wil/wiki/RAII-resource-wrappers
  20. …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…
  21. …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
  22. they have this now: https://github.com/microsoft/wil
    comment by rogerclark · 2019-11-06 · in TheForger's Win32 API Programming Tutorial