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.

61 lines
1.2 KiB

  1. /*****************************************************************************
  2. *
  3. * globals.c
  4. *
  5. * Copyright (c) 2000 Microsoft Corporation. All Rights Reserved.
  6. *
  7. * Abstract:
  8. *
  9. * Global variables that are needed by modules in the STIRT library.
  10. *
  11. *****************************************************************************/
  12. /*
  13. #include "wia.h"
  14. #include "wiapriv.h"
  15. */
  16. #include "sticomm.h"
  17. #ifdef __cplusplus
  18. extern "C" {
  19. #endif
  20. // Reference counter for the whole library
  21. DWORD g_cRef;
  22. // DLL module instance
  23. HINSTANCE g_hInst;
  24. // Critical section for low level syncronization
  25. CRITICAL_SECTION g_crstDll;
  26. // Can we use UNICODE APIs
  27. #if defined(WINNT) || defined(UNICODE)
  28. BOOL g_NoUnicodePlatform = FALSE;
  29. #else
  30. BOOL g_NoUnicodePlatform = TRUE;
  31. #endif
  32. // Is COM initialized
  33. BOOL g_COMInitialized = FALSE;
  34. // Save process command line
  35. CHAR szProcessCommandLine[MAX_PATH] = {'\0'};
  36. // Handle of file log
  37. HANDLE g_hStiFileLog = INVALID_HANDLE_VALUE;
  38. // Pointer to lock manager
  39. IStiLockMgr *g_pLockMgr = NULL;
  40. #ifdef DEBUG
  41. int g_cCrit = -1;
  42. UINT g_thidCrit;
  43. #endif
  44. #ifdef __cplusplus
  45. };
  46. #endif