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.

123 lines
3.5 KiB

  1. /////////////////////////////////////////////////////////////////////////////
  2. // FILE : Provider.h //
  3. // //
  4. // DESCRIPTION : Header file for the Fax Provider snapin node class. //
  5. // //
  6. // AUTHOR : yossg //
  7. // //
  8. // HISTORY : //
  9. // Sep 29 1999 yossg Create //
  10. // Jan 31 2000 yossg add the functionality //
  11. // //
  12. // Copyright (C) 1999 - 2000 Microsoft Corporation All Rights Reserved //
  13. /////////////////////////////////////////////////////////////////////////////
  14. #ifndef H_FAXPROVIDER_H
  15. #define H_FAXPROVIDER_H
  16. #include "snapin.h"
  17. #include "snpnode.h"
  18. #include "DevicesAndProviders.h"
  19. #include "Providers.h"
  20. class CFaxProvidersNode;
  21. class CppFaxProvider;
  22. class CFaxProviderNode : public CSnapinNode <CFaxProviderNode, FALSE>
  23. {
  24. public:
  25. BEGIN_SNAPINCOMMAND_MAP(CFaxProviderNode, FALSE)
  26. END_SNAPINCOMMAND_MAP()
  27. BEGIN_SNAPINTOOLBARID_MAP(CFaxProviderNode)
  28. END_SNAPINTOOLBARID_MAP()
  29. CFaxProviderNode (CSnapInItem * pParentNode, CSnapin * pComponentData) :
  30. CSnapinNode<CFaxProviderNode, FALSE>(pParentNode, pComponentData )
  31. {
  32. }
  33. ~CFaxProviderNode()
  34. {
  35. }
  36. LPOLESTR GetResultPaneColInfo(int nCol);
  37. void InitParentNode(CFaxProvidersNode *pParentNode)
  38. {
  39. m_pParentNode = pParentNode;
  40. }
  41. HRESULT Init(PFAX_DEVICE_PROVIDER_INFO pProviderConfig);
  42. STDMETHOD(CreatePropertyPages)
  43. (LPPROPERTYSHEETCALLBACK lpProvider,
  44. long handle,
  45. IUnknown* pUnk,
  46. DATA_OBJECT_TYPES type);
  47. STDMETHOD(QueryPagesFor)(DATA_OBJECT_TYPES type)
  48. {
  49. if (type == CCT_SCOPE || type == CCT_RESULT)
  50. return S_OK;
  51. return S_FALSE;
  52. }
  53. virtual HRESULT SetVerbs(IConsoleVerb *pConsoleVerb);
  54. HRESULT OnShowContextHelp(
  55. IDisplayHelp* pDisplayHelp, LPOLESTR helpFile);
  56. //
  57. // FillData
  58. //
  59. STDMETHOD (FillData)(CLIPFORMAT cf, LPSTREAM pStream);
  60. //
  61. // Clipboard Formats
  62. //
  63. static CLIPFORMAT m_CFFspGuid;
  64. static CLIPFORMAT m_CFServerName;
  65. private:
  66. //
  67. // members
  68. //
  69. CComBSTR m_bstrProviderName;
  70. CComBSTR m_bstrImageName;
  71. CComBSTR m_bstrProviderGUID;
  72. FAX_ENUM_PROVIDER_STATUS m_enumStatus;
  73. CComBSTR m_bstrStatus;
  74. FAX_VERSION m_verProviderVersion;
  75. CComBSTR m_bstrVersion;
  76. CComBSTR m_buf;
  77. //
  78. // Parent node
  79. //
  80. CFaxProvidersNode * m_pParentNode;
  81. //
  82. // Methods
  83. //
  84. HRESULT InitMembers (PFAX_DEVICE_PROVIDER_INFO pProviderConfig);
  85. void InitIcons ();
  86. UINT GetStatusIDS(FAX_ENUM_PROVIDER_STATUS enumStatus);
  87. };
  88. //typedef CSnapinNode<CFaxProviderNode, FALSE> CBaseFaxProviderNode;
  89. #endif //H_OUTROUTINGRULE_H