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.

54 lines
1.2 KiB

  1. // IBusuInfo.h : Declaration of the CBusuInfo
  2. #ifndef __BUSUINFO_H_
  3. #define __BUSUINFO_H_
  4. #include "resource.h" // main symbols
  5. /////////////////////////////////////////////////////////////////////////////
  6. // CBusuInfo
  7. class ATL_NO_VTABLE CBusuInfo :
  8. public CComObjectRootEx<CComSingleThreadModel>,
  9. public CComCoClass<CBusuInfo, &CLSID_BusuInfo>,
  10. public IDispatchImpl<IBusuInfo, &IID_IBusuInfo, &LIBID_HJDICTLib>
  11. {
  12. public:
  13. CBusuInfo()
  14. {
  15. m_wchBusu = NULL;
  16. m_nStroke = 0;
  17. m_bstrDesc.Empty();
  18. }
  19. DECLARE_REGISTRY_RESOURCEID(IDR_BUSUINFO)
  20. DECLARE_PROTECT_FINAL_CONSTRUCT()
  21. BEGIN_COM_MAP(CBusuInfo)
  22. COM_INTERFACE_ENTRY(IBusuInfo)
  23. COM_INTERFACE_ENTRY(IDispatch)
  24. END_COM_MAP()
  25. // Operator
  26. public:
  27. void Initialize(WCHAR wchBusu, short nStroke, LPCWSTR lpcwszDesc)
  28. {
  29. m_wchBusu = wchBusu;
  30. m_nStroke = nStroke;
  31. m_bstrDesc = lpcwszDesc;
  32. }
  33. // IBusuInfo
  34. public:
  35. STDMETHOD(get_Stroke)(/*[out, retval]*/ short *pVal);
  36. STDMETHOD(get_BusuDesc)(/*[out, retval]*/ BSTR *pVal);
  37. STDMETHOD(get_Busu)(/*[out, retval]*/ long *pVal);
  38. // Data members
  39. protected:
  40. WCHAR m_wchBusu;
  41. short m_nStroke;
  42. CComBSTR m_bstrDesc;
  43. };
  44. #endif //__BUSUINFO_H_