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.

93 lines
3.3 KiB

  1. /////////////////////////////////////////////////////////////////////////////
  2. // FILE : Providers.h //
  3. // //
  4. // DESCRIPTION : Header file for the Fax Providers node //
  5. // //
  6. // AUTHOR : yossg //
  7. // //
  8. // HISTORY : //
  9. // Sep 29 1999 yossg Create //
  10. // //
  11. // Copyright (C) 1999 Microsoft Corporation All Rights Reserved //
  12. /////////////////////////////////////////////////////////////////////////////
  13. #ifndef H_FAXPROVIDERS_H
  14. #define H_FAXPROVIDERS_H
  15. #include "snapin.h"
  16. #include "snpnres.h"
  17. #include "DevicesAndProviders.h"
  18. #include "Provider.h"
  19. class CFaxDevicesAndProvidersNode;
  20. class CFaxProviderNode;
  21. class CFaxProvidersNode : public CNodeWithResultChildrenList<
  22. CFaxProvidersNode,
  23. CFaxProviderNode,
  24. CSimpleArray<CFaxProviderNode*>,
  25. FALSE>
  26. {
  27. public:
  28. BEGIN_SNAPINCOMMAND_MAP(CFaxProvidersNode, FALSE)
  29. END_SNAPINCOMMAND_MAP()
  30. BEGIN_SNAPINTOOLBARID_MAP(CFaxProvidersNode)
  31. END_SNAPINTOOLBARID_MAP()
  32. CFaxProvidersNode(CSnapInItem * pParentNode, CSnapin * pComponentData) :
  33. CNodeWithResultChildrenList<CFaxProvidersNode, CFaxProviderNode, CSimpleArray<CFaxProviderNode*>, FALSE>(pParentNode, pComponentData )
  34. {
  35. }
  36. ~CFaxProvidersNode()
  37. {
  38. }
  39. virtual HRESULT PopulateResultChildrenList();
  40. virtual HRESULT InsertColumns(IHeaderCtrl *pHeaderCtrl);
  41. virtual HRESULT SetVerbs(IConsoleVerb *pConsoleVerb);
  42. STDMETHOD(QueryPagesFor)(DATA_OBJECT_TYPES type)
  43. {
  44. if (type == CCT_SCOPE || type == CCT_RESULT)
  45. return S_OK;
  46. return S_FALSE;
  47. }
  48. HRESULT InitRPC(PFAX_DEVICE_PROVIDER_INFO *pFaxProvidersConfig);
  49. void InitParentNode(CFaxDevicesAndProvidersNode *pParentNode)
  50. {
  51. m_pParentNode = pParentNode;
  52. }
  53. virtual HRESULT OnRefresh(LPARAM arg,
  54. LPARAM param,
  55. IComponentData *pComponentData,
  56. IComponent * pComponent,
  57. DATA_OBJECT_TYPES type);
  58. HRESULT DoRefresh(CSnapInObjectRootBase *pRoot);
  59. HRESULT InitDisplayName();
  60. HRESULT OnShowContextHelp(
  61. IDisplayHelp* pDisplayHelp, LPOLESTR helpFile);
  62. private:
  63. static CColumnsInfo m_ColsInfo;
  64. DWORD m_dwNumOfProviders;
  65. //pointer to mmc parent node - Devices and Providers
  66. CFaxDevicesAndProvidersNode * m_pParentNode;
  67. };
  68. typedef CNodeWithResultChildrenList<CFaxProvidersNode, CFaxProviderNode, CSimpleArray<CFaxProviderNode*>, FALSE>
  69. CBaseFaxProvidersNode;
  70. #endif //H_FAXPROVIDERS_H