Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main()
- {
- NTSTATUS(WINAPI *RtlGetVersion)(LPOSVERSIONINFOEXW);
- OSVERSIONINFOEXW osInfo;
- *(FARPROC*)&RtlGetVersion = GetProcAddress(GetModuleHandleA("ntdll"), "RtlGetVersion");
- if (NULL != RtlGetVersion)
- {
- osInfo.dwOSVersionInfoSize = sizeof(osInfo);
- RtlGetVersion(&osInfo);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement