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.

70 lines
1.8 KiB

  1. /*++
  2. Copyright (c) 1990-1998 Microsoft Corporation, All Rights Reserved
  3. Module Name:
  4. DATA.C
  5. ++*/
  6. #include "windows.h"
  7. #include "immdev.h"
  8. #define _NO_EXTERN_
  9. #include "fakeime.h"
  10. #include "resource.h"
  11. HINSTANCE hInst;
  12. HANDLE hMutex = NULL;
  13. HKL hMyKL = 0;
  14. /* for Translat */
  15. LPTRANSMSGLIST lpCurTransKey= NULL;
  16. UINT uNumTransKey;
  17. BOOL fOverTransKey = FALSE;
  18. /* for UI */
  19. #ifdef FAKEIMEM
  20. WCHAR wszUIClassName[] = L"FAKEIMEMUI";
  21. char szUIClassName[] = "FAKEIMEMUI";
  22. char szCompStrClassName[] = "FAKEIMEMCompStr";
  23. char szCandClassName[] = "FAKEIMEMCand";
  24. char szStatusClassName[] = "FAKEIMEMStatus";
  25. char szGuideClassName[] = "FAKEIMEMGuide";
  26. #elif defined(UNICODE)
  27. TCHAR szUIClassName[] = TEXT("FAKEIMEUUI");
  28. TCHAR szCompStrClassName[] = TEXT("FAKEIMEUCompStr");
  29. TCHAR szCandClassName[] = TEXT("FAKEIMEUCand");
  30. TCHAR szStatusClassName[] = TEXT("FAKEIMEUStatus");
  31. TCHAR szGuideClassName[] = TEXT("FAKEIMEUGuide");
  32. #else
  33. char szUIClassName[] = "FAKEIMEUI";
  34. char szCompStrClassName[] = "FAKEIMECompStr";
  35. char szCandClassName[] = "FAKEIMECand";
  36. char szStatusClassName[] = "FAKEIMEStatus";
  37. char szGuideClassName[] = "FAKEIMEGuide";
  38. #endif
  39. MYGUIDELINE glTable[] = {
  40. {GL_LEVEL_ERROR, GL_ID_NODICTIONARY, IDS_GL_NODICTIONARY, 0},
  41. {GL_LEVEL_WARNING, GL_ID_TYPINGERROR, IDS_GL_TYPINGERROR, 0},
  42. {GL_LEVEL_WARNING, GL_ID_PRIVATE_FIRST,IDS_GL_TESTGUIDELINESTR, IDS_GL_TESTGUIDELINEPRIVATE}
  43. };
  44. /* for DIC */
  45. TCHAR szDicFileName[256]; /* Dictionary file name stored buffer */
  46. #ifdef DEBUG
  47. /* for DebugOptions */
  48. #pragma data_seg("SHAREDDATA")
  49. DWORD dwLogFlag = 0L;
  50. DWORD dwDebugFlag = 0L;
  51. #pragma data_seg()
  52. #endif