Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
494 B

  1. #include "precomp.h"
  2. #pragma hdrstop
  3. #include "windows.h"
  4. #ifdef _M_IX86
  5. UCHAR
  6. FIsChicago(void)
  7. {
  8. DWORD dw;
  9. dw = GetVersion();
  10. // Test the "win32s" bit
  11. if ((dw & 0x80000000) == 0) {
  12. // If Win32s bit not set, it's Windows NT.
  13. return 0;
  14. }
  15. if (LOBYTE(dw) < 4) {
  16. // Win32s version 3 is really Win32s. There
  17. // won't ever be a real Win32s version 4.
  18. return 0;
  19. }
  20. // Yep. It is really Chicago
  21. return 1;
  22. }
  23. #endif