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.

53 lines
1.5 KiB

  1. #ifndef __I_IME_CALLBACK_H__
  2. #define __I_IME_CALLBACK_H__
  3. #include <windows.h>
  4. #include <objbase.h>
  5. #ifdef __cplusplus
  6. extern "C" {
  7. #endif
  8. //----------------------------------------------------------------
  9. // Interface Declaration
  10. //
  11. // {67419A52-0ECD-11d3-83FC-00C04F7A06E5}
  12. DEFINE_GUID(IID_IImeCallback,
  13. 0x67419a52, 0xecd, 0x11d3, 0x83, 0xfc, 0x0, 0xc0, 0x4f, 0x7a, 0x6, 0xe5);
  14. DECLARE_INTERFACE(IImeCallback);
  15. DECLARE_INTERFACE_(IImeCallback,IUnknown)
  16. {
  17. //--- IUnknown ---
  18. STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID* ppvObj) PURE;
  19. STDMETHOD_(ULONG, AddRef) (THIS) PURE;
  20. STDMETHOD_(ULONG, Release)(THIS) PURE;
  21. //---- IImeCallback ----
  22. STDMETHOD(GetApplicationHWND)(THIS_ HWND *pHWND) PURE;
  23. STDMETHOD(Notify)(THIS_ UINT notify, WPARAM wParam, LPARAM lParam) PURE;
  24. };
  25. //----------------------------------------------------------------
  26. // IImeCallback::Notify()'s notify
  27. // IMECBNOTIFY_IMEPADOPENED
  28. // WPARAM wParam: not used. always 0
  29. // LPARAM lParam: not used. always 0
  30. //----------------------------------------------------------------
  31. #define IMECBNOTIFY_IMEPADOPENED 0
  32. //----------------------------------------------------------------
  33. // IImeCallback::Notify()'s notify
  34. // IMECBNOTIFY_IMEPADCLOSED
  35. // WPARAM wParam: not used. always 0
  36. // LPARAM lParam: not used. always 0
  37. //----------------------------------------------------------------
  38. #define IMECBNOTIFY_IMEPADCLOSED 1
  39. #ifdef __cplusplus
  40. };
  41. #endif
  42. #endif //__I_IME_CALLBACK_H__