I would like to implement a custom VPN client on Windows 10 and therefore I am looking for examples how to create a virtual network adapter where I can grab all IP packets for a dedicated subnet.

I was also taking a look at OpenVPN and SoftEther but it looks like that the source code is no longer supported with Visual Studio 2019.