Leaked source code of windows server 2003
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.

85 lines
1.9 KiB

  1. /*++
  2. Copyright (c) 1990 Microsoft Corporation
  3. Module Name:
  4. base.h
  5. Abstract:
  6. This include file defines the type and constant definitions that are
  7. shared by the client and server portions of the BASE portion of the
  8. Windows subsystem.
  9. Author:
  10. Steve Wood (stevewo) 25-Oct-1990
  11. Revision History:
  12. --*/
  13. #ifndef RC_INVOKED
  14. #include <nt.h>
  15. #include <ntrtl.h>
  16. #include <nturtl.h>
  17. #endif
  18. #include <windows.h>
  19. #include <winbasep.h>
  20. #include <string.h>
  21. #include <stdarg.h>
  22. //
  23. // Define debugging flag as false if not defined already.
  24. //
  25. #ifndef DBG
  26. #define DBG 0
  27. #endif
  28. //
  29. // Define IF_DEBUG macro that can be used to enable debugging code that is
  30. // optimized out if the debugging flag is false.
  31. //
  32. #if DBG
  33. #define IF_DEBUG if (TRUE)
  34. #else
  35. #define IF_DEBUG if (FALSE)
  36. #endif
  37. //
  38. // Include Windows Subsystem common definitions
  39. //
  40. #include <winss.h>
  41. //
  42. // Include definitions for the runtime DLL shared between the client and
  43. // server portions of the Base portion of the Windows subsystem
  44. //
  45. #include "basertl.h"
  46. #define WIN32_SS_PIPE_FORMAT_STRING "\\Device\\NamedPipe\\Win32Pipes.%08x.%08x"
  47. typedef struct _BASE_STATIC_SERVER_DATA {
  48. UNICODE_STRING WindowsDirectory;
  49. UNICODE_STRING WindowsSystemDirectory;
  50. UNICODE_STRING NamedObjectDirectory;
  51. USHORT WindowsMajorVersion;
  52. USHORT WindowsMinorVersion;
  53. USHORT BuildNumber;
  54. WCHAR CSDVersion[ 128 ];
  55. SYSTEM_BASIC_INFORMATION SysInfo;
  56. SYSTEM_TIMEOFDAY_INFORMATION TimeOfDay;
  57. PINIFILE_MAPPING IniFileMapping;
  58. NLS_USER_INFO NlsUserInfo;
  59. BOOLEAN DefaultSeparateVDM;
  60. ULONG BaseRtlTag;
  61. ULONG LogicalDrives;
  62. UCHAR DriveTypes[ 32 ];
  63. } BASE_STATIC_SERVER_DATA, *PBASE_STATIC_SERVER_DATA;