Counter Strike : Global Offensive Source Code
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.

60 lines
1.4 KiB

  1. //========= Copyright 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $Workfile: $
  6. // $Date: $
  7. //
  8. //-----------------------------------------------------------------------------
  9. // $Log: $
  10. //
  11. // $NoKeywords: $
  12. //=============================================================================//
  13. #ifndef OSVERSION_H
  14. #define OSVERSION_H
  15. #pragma once
  16. #include "vstdlib/vstdlib.h"
  17. // OS types we know about
  18. // Must be in ascending capability order, we use this for min OS requirements
  19. enum EOSType
  20. {
  21. k_eOSUnknown = -1,
  22. k_eMacOSUnknown = -102,
  23. k_eMacOS104 = -101,
  24. k_eMacOS105 = -100,
  25. k_eMacOS1058 = -99,
  26. k_eMacOS106 = -95,
  27. k_eMacOS1063 = -94,
  28. k_eMacOS107 = -90,
  29. // k_eMacOSMax = -1
  30. k_eLinuxUnknown = -203,
  31. k_eLinux22 = -202,
  32. k_eLinux24 = -201,
  33. k_eLinux26 = -200,
  34. // k_eLinuxMax = -103
  35. k_eWinUnknown = 0,
  36. k_eWin311 = 1,
  37. k_eWin95,
  38. k_eWin98,
  39. k_eWinME,
  40. k_eWinNT,
  41. k_eWin2000,
  42. k_eWinXP,
  43. k_eWin2003,
  44. k_eWinVista,
  45. k_eWindows7,
  46. k_eWin2008,
  47. k_eWinMAX,
  48. k_eOSTypeMax = k_eWinMAX + 11 // win types + other ifdef'd types
  49. };
  50. VSTDLIB_INTERFACE const char *GetNameFromOSType( EOSType eOSType );
  51. VSTDLIB_INTERFACE const char *GetOSDetailString( char *pchOutBuf, int cchOutBuf );
  52. VSTDLIB_INTERFACE EOSType GetOSType();
  53. VSTDLIB_INTERFACE bool OSTypesAreCompatible( EOSType eOSTypeDetected, EOSType eOSTypeRequired );
  54. VSTDLIB_INTERFACE const char *GetPlatformName( bool *pbIs64Bit );
  55. #endif // OSVERSION_H