Advertisement
Guest User

Untitled

a guest
Jul 16th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. int main()
  2. {
  3. NTSTATUS(WINAPI *RtlGetVersion)(LPOSVERSIONINFOEXW);
  4. OSVERSIONINFOEXW osInfo;
  5.  
  6. *(FARPROC*)&RtlGetVersion = GetProcAddress(GetModuleHandleA("ntdll"), "RtlGetVersion");
  7.  
  8. if (NULL != RtlGetVersion)
  9. {
  10. osInfo.dwOSVersionInfoSize = sizeof(osInfo);
  11. RtlGetVersion(&osInfo);
  12. }
  13. return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement