Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. <compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
  2. <application>
  3. <!-- Windows Vista -->
  4. <supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}"/>
  5. <!-- Windows 7 -->
  6. <supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/>
  7. <!-- Windows 8 -->
  8. <supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"/>
  9. <!-- Windows 8.1 -->
  10. <supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}"/>
  11. <!-- Windows 10 -->
  12. <supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}"/>
  13. </application>
  14. </compatibility>
  15.  
  16. #include <windows.h>
  17. #include <stdio.h>
  18.  
  19. void main()
  20. {
  21. OSVERSIONINFOEX osvi;
  22. BOOL bIsWindowsXPorLater;
  23.  
  24. ZeroMemory(&osvi, sizeof(OSVERSIONINFOEX));
  25. osvi.dwOSVersionInfoSize = sizeof(OSVERSIONINFOEX);
  26.  
  27. GetVersionEx((OSVERSIONINFO*)&osvi);
  28.  
  29. printf("Version is %d.%d (%d)n",
  30. osvi.dwMajorVersion,
  31. osvi.dwMinorVersion,
  32. osvi.dwBuildNumber);
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement