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:
1 parent
feeb342c00
commit
4c4112fbc7
3 files changed
+37
-29
No files matched your search
@@ -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 ---;
|
||||
}
|
||||
Reference in new issue
Block a user