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.

59 lines
996 B

  1. /*++
  2. Copyright (c) 2001, Microsoft Corporation
  3. Module Name:
  4. reconvcb.h
  5. Abstract:
  6. This file defines the CStartReconversionNotifySink Interface Class.
  7. Author:
  8. Revision History:
  9. Notes:
  10. --*/
  11. #ifndef RECONVCB_H
  12. #define RECONVCB_H
  13. class CicInputContext;
  14. class CStartReconversionNotifySink : public ITfStartReconversionNotifySink
  15. {
  16. public:
  17. CStartReconversionNotifySink(HIMC hIMC)
  18. {
  19. m_cRef = 1;
  20. m_hIMC = hIMC;
  21. }
  22. //
  23. // IUnknown methods
  24. //
  25. STDMETHODIMP QueryInterface(REFIID riid, void **ppvObj);
  26. STDMETHODIMP_(ULONG) AddRef(void);
  27. STDMETHODIMP_(ULONG) Release(void);
  28. //
  29. // ITfStartReconversionNotifySink
  30. //
  31. STDMETHODIMP StartReconversion();
  32. STDMETHODIMP EndReconversion();
  33. HRESULT _Advise(ITfContext *pic);
  34. HRESULT _Unadvise();
  35. private:
  36. long m_cRef;
  37. HIMC m_hIMC;
  38. ITfContext *_pic;
  39. DWORD _dwCookie;
  40. };
  41. #endif // RECONVCB_H