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.

69 lines
1.2 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name :
  4. tsproc.hxx
  5. Abstract:
  6. Exports misc. bits of services from the tsunami package
  7. Author:
  8. Johnson Apacible (johnsona) 29-Feb-1996
  9. Project:
  10. Internet Services Common Functionality ( Tsunami Library)
  11. Revision History:
  12. --*/
  13. #ifndef _TSPROC_HXX_
  14. #define _TSPROC_HXX_
  15. # ifdef __cplusplus
  16. extern "C" {
  17. # endif // __cplusplus
  18. //
  19. // Enum for product types
  20. //
  21. typedef enum _PLATFORM_TYPE {
  22. PtInvalid, // Invalid
  23. PtNtWorkstation, // NT Workstation
  24. PtNtServer, // NT Server
  25. PtWindows95, // Windows 95
  26. PtWindows9x // Windows 9x - not implemented
  27. } PLATFORM_TYPE;
  28. //
  29. // Used to get the platform type
  30. //
  31. dllexp
  32. PLATFORM_TYPE
  33. TsGetPlatformType(
  34. VOID
  35. );
  36. extern
  37. dllexp
  38. PLATFORM_TYPE TsPlatformType;
  39. #define TsIsNtServer( ) (TsPlatformType == PtNtServer)
  40. #define TsIsNtWksta( ) (TsPlatformType == PtNtWorkstation)
  41. #define TsIsWindows95() (TsPlatformType == PtWindows95)
  42. # ifdef __cplusplus
  43. }; // extern "C"
  44. # endif // __cplusplus
  45. #endif // _TSPROC_HXX_