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.

82 lines
2.0 KiB

  1. /****************************************************************************
  2. Copyright (c) Microsoft Corporation 1998
  3. All rights reserved
  4. File: PCH.H
  5. Precompiled header file.
  6. ***************************************************************************/
  7. #if DBG == 1
  8. #define DEBUG
  9. #endif
  10. #define SECURITY_WIN32
  11. #include <nt.h>
  12. #include <ntrtl.h>
  13. #include <nturtl.h>
  14. #include <windows.h>
  15. #include <windowsx.h>
  16. #include <commdlg.h>
  17. #include <shlwapi.h>
  18. #include <lm.h>
  19. #include <remboot.h>
  20. #include <setupapi.h>
  21. extern "C" {
  22. #include "..\imirror\imirror.h"
  23. }
  24. #include "debug.h"
  25. #include "resource.h"
  26. #include "msg.h"
  27. // Globals
  28. extern HINSTANCE g_hinstance;
  29. extern HWND g_hCurrentWindow;
  30. extern WCHAR g_ServerName[ MAX_PATH ];
  31. extern WCHAR g_MirrorDir[ MAX_PATH ];
  32. extern WCHAR g_Language[ MAX_PATH ];
  33. extern WCHAR g_ImageName[ MAX_PATH ];
  34. extern WCHAR g_Architecture[ 16 ];
  35. extern WCHAR g_Description[ REMOTE_INSTALL_MAX_DESCRIPTION_CHAR_COUNT ];
  36. extern WCHAR g_HelpText[ REMOTE_INSTALL_MAX_HELPTEXT_CHAR_COUNT ];
  37. extern WCHAR g_SystemRoot[ MAX_PATH ];
  38. extern WCHAR g_WinntDirectory[ MAX_PATH ];
  39. extern DWORD g_dwWinntDirLength;
  40. extern BOOLEAN g_fQuietFlag;
  41. extern BOOLEAN g_fErrorOccurred;
  42. extern BOOLEAN g_fRebootOnExit;
  43. extern DWORD g_dwLogFileStartLow;
  44. extern DWORD g_dwLogFileStartHigh;
  45. extern PCRITICAL_SECTION g_pLogCritSect;
  46. extern HANDLE g_hLogFile;
  47. extern OSVERSIONINFO OsVersion;
  48. extern HINF g_hCompatibilityInf;
  49. extern WCHAR g_HalName[32];
  50. extern WCHAR g_ProductId[4];
  51. //
  52. // Inc/decrements macros.
  53. //
  54. #define InterlockDecrement( _var ) --_var;
  55. #define InterlockIncrement( _var ) ++_var;
  56. // Macros
  57. #define ARRAYSIZE( _x ) ((UINT) ( sizeof( _x ) / sizeof( _x[ 0 ] ) ))
  58. // Private Messages
  59. #define WM_ERROR WM_USER
  60. #define WM_UPDATE WM_USER + 1
  61. #define WM_CONTINUE WM_USER + 2
  62. #define WM_ERROR_OK WM_USER + 3
  63. //
  64. // Made-up DirID for the UserProfiles directory.
  65. //
  66. // If you change this value, you *must* also change
  67. // the corresponding value in riprep.inf
  68. //
  69. #define PROFILES_DIRID (0x8001)