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
2.0 KiB

  1. /****************************************************************************
  2. ESCAPE.H
  3. Owner: cslim
  4. Copyright (c) 1997-1999 Microsoft Corporation
  5. ImeEscape functions
  6. History:
  7. 14-JUL-1999 cslim Copied from IME98 source tree
  8. *****************************************************************************/
  9. #if !defined (_ESCAPE__H__INCLUDED_)
  10. #define _ESCAPE__H__INCLUDED_
  11. // For User Interface
  12. #define COMP_WINDOW 0
  13. #define STATE_WINDOW 1
  14. #define CAND_WINDOW 2
  15. extern BOOL vfWndOpen[3];
  16. #pragma pack(push, MYIMESTRUCT)
  17. #pragma pack(2)
  18. #define GET_LPSOURCEW(lpks) (LPWSTR)((LPBYTE)(lpks)+(lpks)->dchSource)
  19. #define GET_LPDESTW(lpks) (LPWSTR)((LPBYTE)(lpks)+(lpks)->dchDest)
  20. #define GET_LPSOURCEA(lpks) (LPSTR)((LPBYTE)(lpks)+(lpks)->dchSource)
  21. #define GET_LPDESTA(lpks) (LPSTR)((LPBYTE)(lpks)+(lpks)->dchDest)
  22. typedef struct tagIMESTRUCT32
  23. {
  24. WORD fnc; // function code
  25. WORD wParam; // word parameter
  26. WORD wCount; // word counter
  27. WORD dchSource; // offset to Source from top of memory object
  28. WORD dchDest; // offset to Desrination from top of memory object
  29. DWORD lParam1;
  30. DWORD lParam2;
  31. DWORD lParam3;
  32. } IMESTRUCT32;
  33. typedef IMESTRUCT32 *PIMESTRUCT32;
  34. typedef IMESTRUCT32 NEAR *NPIMESTRUCT32;
  35. typedef IMESTRUCT32 FAR *LPIMESTRUCT32;
  36. #pragma pack(pop, MYIMESTRUCT)
  37. extern INT EscHanjaMode(PCIMECtx pImeCtx, LPSTR lpIME32, BOOL fNewFunc);
  38. extern INT EscGetOpen(PCIMECtx pImeCtx, LPIMESTRUCT32 lpIME32);
  39. extern INT EscSetOpen(PCIMECtx pImeCtx, LPIMESTRUCT32 lpIME32);
  40. extern INT EscAutomata(PCIMECtx pImeCtx, LPIMESTRUCT32 lpIME32, BOOL fNewFunc);
  41. extern INT EscMoveIMEWindow(PCIMECtx pImeCtx, LPIMESTRUCT32 lpIME32);
  42. extern INT EscGetIMEKeyLayout(PCIMECtx pImeCtx, LPIMESTRUCT32 lpIME32);
  43. #endif // !defined (_ESCAPE__H__INCLUDED_)