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.

56 lines
1.7 KiB

  1. /****************************** Module Header ******************************\
  2. * Module Name: global.c
  3. *
  4. * Copyright (c) 1985 - 1999, Microsoft Corporation
  5. *
  6. * Contains global data for the imm32 dll
  7. *
  8. * History:
  9. * 03-Jan-1996 wkwok Created
  10. \**************************************************************************/
  11. #include "precomp.h"
  12. #pragma hdrstop
  13. /*
  14. * We get this warning if we don't explicitly initalize gZero:
  15. *
  16. * C4132: 'gZero' : const object should be initialized
  17. *
  18. * But we can't explicitly initialize it since it is a union. So
  19. * we turn the warning off.
  20. */
  21. #pragma warning(disable:4132)
  22. CONST ALWAYSZERO gZero;
  23. #pragma warning(default:4132)
  24. BOOLEAN gfInitialized;
  25. HINSTANCE ghInst;
  26. PVOID pImmHeap;
  27. PSERVERINFO gpsi = NULL;
  28. SHAREDINFO gSharedInfo;
  29. ULONG_PTR gHighestUserAddress;
  30. PIMEDPI gpImeDpi = NULL;
  31. CRITICAL_SECTION gcsImeDpi;
  32. POINT gptRaiseEdge;
  33. UINT guScanCode[0xFF]; // scan code for each virtual key
  34. #ifdef LATER
  35. CONST WCHAR gszRegKbdLayout[] = L"Keyboard Layouts\\";
  36. CONST INT sizeof_gszRegKbdLayout = sizeof gszRegKbdLayout;
  37. #else
  38. // current
  39. CONST WCHAR gszRegKbdLayout[] = L"System\\CurrentControlSet\\Control\\Keyboard Layouts";
  40. #ifdef CUAS_ENABLE
  41. CONST WCHAR gszRegCiceroIME[] = L"Software\\Microsoft\\Windows NT\\CurrentVersion\\IMM";
  42. CONST WCHAR gszRegCtfShared[] = L"Software\\Microsoft\\CTF\\SystemShared";
  43. CONST WCHAR gszValCUASEnable[] = L"CUAS";
  44. #endif // CUAS_ENABLE
  45. #endif
  46. CONST WCHAR gszRegKbdOrder[] = L"Keyboard Layout\\Preload";
  47. CONST WCHAR gszValLayoutText[] = L"Layout Text";
  48. CONST WCHAR gszValLayoutFile[] = L"Layout File";
  49. CONST WCHAR gszValImeFile[] = L"Ime File";