Fixed getting windows version. The former function is no longer working on Windows 10. Also fixed the struct to use correct win32 names

This commit is contained in:
zhibog
2020-10-24 00:14:01 +02:00
parent feeb342c00
commit 4c4112fbc7
3 changed files with 37 additions and 29 deletions
+8
View File
@@ -0,0 +1,8 @@
package version
foreign import ntdll_lib "system:ntdll.lib"
@(default_calling_convention="std")
foreign ntdll_lib {
RtlGetVersion :: proc(lpVersionInformation: ^OSVERSIONINFOEXW) -> NTSTATUS ---;
}