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.

59 lines
2.0 KiB

  1. //=--------------------------------------------------------------------------=
  2. // Globals.H
  3. //=--------------------------------------------------------------------------=
  4. // Copyright 1995 Microsoft Corporation. All Rights Reserved.
  5. //
  6. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
  7. // ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
  8. // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
  9. // PARTICULAR PURPOSE.
  10. //=--------------------------------------------------------------------------=
  11. //
  12. // contains externs and stuff for Global variables, etc ..
  13. //
  14. #ifndef _GLOBALS_H_
  15. //=--------------------------------------------------------------------------=
  16. // our global memory allocator and global memory pool
  17. //
  18. extern HANDLE g_hHeap;
  19. extern LPMALLOC g_pMalloc;
  20. extern HINSTANCE g_hinstance;
  21. extern ULONG g_cLockCount;
  22. extern ULONG g_cObjectCount;
  23. extern CRITICAL_SECTION g_CriticalSection;
  24. //=--------------------------------------------------------------------------=
  25. // frequently used large integers
  26. //
  27. extern LARGE_INTEGER g_liMinus; // minus one
  28. extern LARGE_INTEGER g_liZero; // - zero -
  29. extern LARGE_INTEGER g_liPlus; // plus one
  30. #ifdef _DEBUG
  31. void DumpObjectCounters();
  32. #endif // _DEBUG
  33. //=--------------------------------------------------------------------------=
  34. // VDInitGlobals
  35. //=--------------------------------------------------------------------------=
  36. // Initialize global variables
  37. //
  38. // Parameters:
  39. // hinstResource - [in] The instance handle that contains resource strings
  40. //
  41. // Output:
  42. // TRUE if successful otherwise FALSE
  43. //
  44. BOOL VDInitGlobals(HINSTANCE hinstance);
  45. //=--------------------------------------------------------------------------=
  46. // VDReleaseGlobals
  47. //=--------------------------------------------------------------------------=
  48. void VDReleaseGlobals();
  49. void VDUpdateObjectCount(int cChange);
  50. #define _GLOBALS_H_
  51. #endif // _GLOBALS_H_