SHARE
TWEET

Untitled

a guest Jul 16th, 2019 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top