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.

47 lines
811 B

  1. //
  2. // candkey.h
  3. //
  4. #if !defined (__CANDKEY_H__INCLUDED_)
  5. #define __CANDKEY_H__INCLUDED_
  6. #include "private.h"
  7. #include "mscandui.h"
  8. //
  9. // CCandUIKeyTable
  10. //
  11. class CCandUIKeyTable : public ITfCandUIKeyTable
  12. {
  13. public:
  14. CCandUIKeyTable(int nData);
  15. ~CCandUIKeyTable();
  16. //
  17. // IUnknown methods
  18. //
  19. STDMETHODIMP QueryInterface(REFIID riid, void **ppvObj);
  20. STDMETHODIMP_(ULONG) AddRef();
  21. STDMETHODIMP_(ULONG) Release();
  22. //
  23. // ITfCandUIKeyTable
  24. //
  25. STDMETHODIMP GetKeyDataNum(int *piNum);
  26. STDMETHODIMP GetKeyData(int iData, CANDUIKEYDATA *pData);
  27. //
  28. //
  29. //
  30. HRESULT AddKeyData(const CANDUIKEYDATA *pData);
  31. protected:
  32. long m_cRef;
  33. CANDUIKEYDATA *m_pData;
  34. int m_nData;
  35. int m_nDataMax;
  36. };
  37. #endif // __CANDKEY_H__INCLUDED_