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.

62 lines
1.6 KiB

  1. /*++
  2. Copyright (c) 2000 Microsoft Corporation
  3. Module Name:
  4. FaxOutboundRouting.h
  5. Abstract:
  6. Declaration of the CFaxOutboundRouting class.
  7. Author:
  8. Iv Garber (IvG) Jun, 2000
  9. Revision History:
  10. --*/
  11. #ifndef __FAXOUTBOUNDROUTING_H_
  12. #define __FAXOUTBOUNDROUTING_H_
  13. #include "resource.h" // main symbols
  14. #include "FaxCommon.h"
  15. //
  16. //=================== FAX OUTBOUND ROUTING =============================================
  17. // Like in FaxInboundRouting, both ORGroups and ORRules Collections are not cached.
  18. // Rather they are created each time the OutboundRouting is asked for them.
  19. // To be sure that the Server Object is up during their lifetime, they do
  20. // AddRef() on the Server Ojbect at their Init() function.
  21. class ATL_NO_VTABLE CFaxOutboundRouting :
  22. public CComObjectRootEx<CComSingleThreadModel>,
  23. public ISupportErrorInfo,
  24. public IDispatchImpl<IFaxOutboundRouting, &IID_IFaxOutboundRouting, &LIBID_FAXCOMEXLib>,
  25. public CFaxInitInner
  26. {
  27. public:
  28. CFaxOutboundRouting() : CFaxInitInner(_T("FAX OUTBOUND ROUTING"))
  29. {
  30. }
  31. DECLARE_REGISTRY_RESOURCEID(IDR_FAXOUTBOUNDROUTING)
  32. DECLARE_NOT_AGGREGATABLE(CFaxOutboundRouting)
  33. DECLARE_PROTECT_FINAL_CONSTRUCT()
  34. BEGIN_COM_MAP(CFaxOutboundRouting)
  35. COM_INTERFACE_ENTRY(IFaxOutboundRouting)
  36. COM_INTERFACE_ENTRY(IDispatch)
  37. COM_INTERFACE_ENTRY(ISupportErrorInfo)
  38. END_COM_MAP()
  39. // Interfaces
  40. STDMETHOD(InterfaceSupportsErrorInfo)(REFIID riid);
  41. STDMETHOD(GetGroups)(/*[out, retval]*/ IFaxOutboundRoutingGroups **ppGroups);
  42. STDMETHOD(GetRules)(/*[out, retval]*/ IFaxOutboundRoutingRules **ppRules);
  43. };
  44. #endif //__FAXOUTBOUNDROUTING_H_