* feat: replace unmaintained winapi with windows-sys
winapi has been unmaintained for a long time
this commit replaces winapi with windows-sys which is generated from
windows API headers and maintained by Microsoft
* address feedback
* fix bugs
---------
Co-authored-by: João Moreno <joao.moreno@microsoft.com>