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.

60 lines
1.4 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // File: globals.h
  4. //
  5. // Contents: Global variable declarations.
  6. //
  7. //----------------------------------------------------------------------------
  8. #ifndef GLOBALS_H
  9. #define GLOBALS_H
  10. #include "pimm.h"
  11. #include "imtls.h"
  12. extern HINSTANCE g_hInst;
  13. extern CProcessIMM* g_ProcessIMM;
  14. typedef struct tagSELECTCONTEXT_ENUM {
  15. HKL hSelKL;
  16. HKL hUnSelKL;
  17. } SCE, *PSCE;
  18. typedef int (*TOUNICODEEX)(UINT, UINT, CONST BYTE *, LPWSTR, int, UINT, HKL);
  19. extern TOUNICODEEX g_pfnToUnicodeEx;
  20. //+---------------------------------------------------------------------------
  21. //
  22. // WM_MSIME_xxxx
  23. //
  24. //----------------------------------------------------------------------------
  25. extern UINT WM_MSIME_SERVICE;
  26. extern UINT WM_MSIME_UIREADY;
  27. extern UINT WM_MSIME_RECONVERTREQUEST;
  28. extern UINT WM_MSIME_RECONVERT;
  29. extern UINT WM_MSIME_DOCUMENTFEED;
  30. extern UINT WM_MSIME_QUERYPOSITION;
  31. extern UINT WM_MSIME_MODEBIAS;
  32. extern UINT WM_MSIME_SHOWIMEPAD;
  33. extern UINT WM_MSIME_MOUSE;
  34. extern UINT WM_MSIME_KEYMAP;
  35. //+---------------------------------------------------------------------------
  36. //
  37. // GetTLS
  38. //
  39. //----------------------------------------------------------------------------
  40. class CActiveIMM;
  41. inline CActiveIMM *GetTLS()
  42. {
  43. return IMTLS_GetActiveIMM();
  44. }
  45. #endif // GLOBALS_H