Hello there,
I am not sure about the code availablity but this article contains the information you need to get started building apps for the Windows desktop environment https://learn.microsoft.com/en-us/windows/apps/get-started/?tabs=net-maui%2Ccpp-win32
Windows offers a wide range of options for building apps, including C++, .NET, and other emerging technologies such as open source tools on WSL and Rust. If you can share your app building platform it might be easy for the community to help you with sample code.
Hope this resolves your Query !!
--If the reply is helpful, please Upvote and Accept it as an answer–