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.

78 lines
2.1 KiB

  1. /*++
  2. Copyright (c) 2000 Microsoft Corporation
  3. Module Name:
  4. FaxInboundRoutingMethod.h
  5. Abstract:
  6. Declaration of the CFaxInboundRoutingMethod Class.
  7. Author:
  8. Iv Garber (IvG) Jun, 2000
  9. Revision History:
  10. --*/
  11. #ifndef __FAXINBOUNDROUTINGMETHOD_H_
  12. #define __FAXINBOUNDROUTINGMETHOD_H_
  13. #include "resource.h" // main symbols
  14. #include "FaxCommon.h"
  15. //
  16. //==================== FAX INBOUND ROUTING METHOD =============================
  17. //
  18. class ATL_NO_VTABLE CFaxInboundRoutingMethod :
  19. public CComObjectRootEx<CComSingleThreadModel>,
  20. public ISupportErrorInfo,
  21. public IDispatchImpl<IFaxInboundRoutingMethod, &IID_IFaxInboundRoutingMethod, &LIBID_FAXCOMEXLib>,
  22. public CFaxInitInnerAddRef
  23. {
  24. public:
  25. CFaxInboundRoutingMethod() : CFaxInitInnerAddRef(_T("FAX INBOUND ROUTING METHOD"))
  26. {
  27. }
  28. DECLARE_REGISTRY_RESOURCEID(IDR_FAXINBOUNDROUTINGMETHOD)
  29. DECLARE_NOT_AGGREGATABLE(CFaxInboundRoutingMethod)
  30. DECLARE_PROTECT_FINAL_CONSTRUCT()
  31. BEGIN_COM_MAP(CFaxInboundRoutingMethod)
  32. COM_INTERFACE_ENTRY(IFaxInboundRoutingMethod)
  33. COM_INTERFACE_ENTRY(IDispatch)
  34. COM_INTERFACE_ENTRY(ISupportErrorInfo)
  35. END_COM_MAP()
  36. // Interfaces
  37. STDMETHOD(InterfaceSupportsErrorInfo)(REFIID riid);
  38. STDMETHOD(get_Name)(/*[out, retval]*/ BSTR *pbstrName);
  39. STDMETHOD(get_GUID)(/*[out, retval]*/ BSTR *pbstrGUID);
  40. STDMETHOD(get_FunctionName)(/*[out, retval]*/ BSTR *pbstrFunctionName);
  41. STDMETHOD(get_ExtensionFriendlyName)(/*[out, retval]*/ BSTR *pbstrExtensionFriendlyName);
  42. STDMETHOD(get_ExtensionImageName)(/*[out, retval]*/ BSTR *pbstrExtensionImageName);
  43. STDMETHOD(put_Priority)(/*[in]*/ long lPriority);
  44. STDMETHOD(get_Priority)(/*[out, retval]*/ long *plPriority);
  45. STDMETHOD(Save)();
  46. STDMETHOD(Refresh)();
  47. // Internal Use
  48. STDMETHOD(Init)(FAX_GLOBAL_ROUTING_INFO *pInfo, IFaxServerInner *pServer);
  49. private:
  50. CComBSTR m_bstrName;
  51. CComBSTR m_bstrGUID;
  52. CComBSTR m_bstrFunctionName;
  53. CComBSTR m_bstrFriendlyName;
  54. CComBSTR m_bstrImageName;
  55. long m_lPriority;
  56. };
  57. #endif //__FAXINBOUNDROUTINGMETHOD_H_