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.

34 lines
1.2 KiB

  1. #ifndef __C_IME_CALLBACK_H__
  2. #define __C_IME_CALLBACK_H__
  3. #include "../../fecommon/include/iimecb.h"
  4. class CImeCallback;
  5. typedef CImeCallback* LPCImeCallback;
  6. class CImeCallback: public IImeCallback
  7. {
  8. public:
  9. //----------------------------------------------------------------
  10. //IUnknown
  11. //----------------------------------------------------------------
  12. virtual HRESULT __stdcall QueryInterface(REFIID riid, LPVOID* ppvObj);
  13. virtual ULONG __stdcall AddRef();
  14. virtual ULONG __stdcall Release();
  15. //----------------------------------------------------------------
  16. //IImeConnectionPoint method
  17. //----------------------------------------------------------------
  18. virtual HRESULT __stdcall GetApplicationHWND(HWND *pHWND);
  19. virtual HRESULT __stdcall Notify(UINT notify, WPARAM wParam, LPARAM lParam);
  20. CImeCallback(FARPROC lpfn);
  21. CImeCallback();
  22. ~CImeCallback();
  23. //Temporary
  24. static LPCImeCallback Fetch(VOID);
  25. static VOID Destroy(VOID); //990803:ToshiaK
  26. void *operator new(size_t size) { return GlobalAlloc(GMEM_FIXED, size);}
  27. void operator delete(void *pv) { GlobalFree(pv);}
  28. private:
  29. static m_lpCImeCallback;
  30. LONG m_cRef;
  31. };
  32. #endif //__C_IIME_CALLBACK_H__