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.

48 lines
1.4 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1994 - 1996.
  5. //
  6. // File: globals.hxx
  7. //
  8. // Contents: Globals shared between two or more modules.
  9. //
  10. // History: 09-27-94 DavidMun Created
  11. //
  12. //----------------------------------------------------------------------------
  13. #ifndef __GLOBALS_HXX_
  14. #define __GLOBALS_HXX_
  15. //
  16. // Public globals
  17. //
  18. // g_Log - instance of the logging class
  19. //
  20. // Calling GetToken() or PeekToken() can cause updates to the following
  21. // variables:
  22. //
  23. // g_wszLastStringToken - last TKN_STRING value parsed
  24. // g_wszLastNumberToken - string representation of last TKN_NUMBER value parsed
  25. // g_ulLastNumberToken - numeric value of last TKN_NUMBER value parsed
  26. // g_pJob - job object used by all job object commands
  27. // g_pJobQueue - queue object used by all queue object commands
  28. // g_pJobScheduler - interface to job scheduler used by all sched commands
  29. // g_apEnumJob - for use by /EN? and /SCE commands
  30. //
  31. #define NUM_ENUMERATOR_SLOTS 10
  32. extern CLog g_Log;
  33. extern WCHAR g_wszLastStringToken[MAX_TOKEN_LEN + 1];
  34. extern WCHAR g_wszLastNumberToken[11];
  35. extern ULONG g_ulLastNumberToken;
  36. extern ITask *g_pJob;
  37. extern IUnknown *g_pJobQueue;
  38. extern ITaskScheduler * g_pJobScheduler;
  39. extern IEnumWorkItems *g_apEnumJobs[NUM_ENUMERATOR_SLOTS];
  40. #endif // __GLOBALS_HXX_