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.

89 lines
1.6 KiB

  1. /*++
  2. Copyright (c) 1995-1996 Microsoft Corporation
  3. Module Name :
  4. isplat.h
  5. Abstract:
  6. Exports platform data types for Internet Services.
  7. Author:
  8. Johnson Apacible (johnsona) 29-Feb-1996
  9. Project:
  10. Internet Server DLLs
  11. Revision History:
  12. --*/
  13. // Just to ensure the the old platform type does not cause problems
  14. # define _ISPLAT_H_
  15. # ifndef _ISPLAT_H_
  16. # define _ISPLAT_H_
  17. # if !defined( dllexp)
  18. #define dllexp __declspec( dllexport )
  19. # endif // dllexp
  20. # ifdef __cplusplus
  21. extern "C" {
  22. # endif // __cplusplus
  23. //
  24. // Enum for product types
  25. //
  26. typedef enum _PLATFORM_TYPE {
  27. PtInvalid = 0, // Invalid
  28. PtNtWorkstation = 1, // NT Workstation
  29. PtNtServer = 2, // NT Server
  30. PtWindows95 = 3, // Windows 95
  31. PtWindows9x = 4 // Windows 9x - not implemented
  32. } PLATFORM_TYPE;
  33. //
  34. // Used to get the platform type
  35. //
  36. dllexp
  37. PLATFORM_TYPE
  38. IISGetPlatformType(
  39. VOID
  40. );
  41. //
  42. // external macros
  43. //
  44. #define InetIsNtServer( _pt ) ((_pt) == PtNtServer)
  45. #define InetIsNtWksta( _pt ) ((_pt) == PtNtWorkstation)
  46. #define InetIsWindows95( _pt ) ((_pt) == PtWindows95)
  47. //
  48. // infocomm internal
  49. //
  50. extern
  51. PLATFORM_TYPE TsPlatformType;
  52. #define TsIsNtServer( ) InetIsNtServer(TsPlatformType)
  53. #define TsIsNtWksta( ) InetIsNtWksta(TsPlatformType)
  54. #define TsIsWindows95() InetIsWindows95(TsPlatformType)
  55. # ifdef __cplusplus
  56. }; // extern "C"
  57. # endif // __cplusplus
  58. # endif // _ISPLAT_H_