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.

43 lines
1.3 KiB

  1. //***************************************************************************
  2. //* Copyright (c) Microsoft Corporation 1995. All rights reserved. *
  3. //***************************************************************************
  4. //* *
  5. //* GLOBALS.H - Global Context save / restore *
  6. //* *
  7. //***************************************************************************
  8. #ifndef _GLOBALS_H_
  9. #define _GLOBALS_H_
  10. typedef struct {
  11. WORD wOSVer;
  12. WORD wQuietMode;
  13. BOOL bUpdHlpDlls;
  14. HINSTANCE hSetupLibrary;
  15. BOOL fOSSupportsINFInstalls;
  16. LPSTR lpszTitle;
  17. HWND hWnd;
  18. DWORD dwSetupEngine;
  19. BOOL bCompressed;
  20. char szBrowsePath[MAX_PATH];
  21. HINF hInf;
  22. BOOL bHiveLoaded;
  23. CHAR szRegHiveKey[MAX_PATH];
  24. } ADVCONTEXT, *PADVCONTEXT;
  25. extern ADVCONTEXT ctx;
  26. extern HINSTANCE g_hInst;
  27. extern HANDLE g_hAdvLogFile;
  28. BOOL SaveGlobalContext();
  29. BOOL RestoreGlobalContext();
  30. // related to logging
  31. VOID AdvStartLogging();
  32. VOID AdvWriteToLog(LPCSTR pcszFormatString, ...);
  33. VOID AdvLogDateAndTime();
  34. VOID AdvStopLogging();
  35. #endif // _GLOBALS_H_