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.

69 lines
2.6 KiB

  1. /////////////////////////////////////////////////////////////////////////////
  2. // FILE : Root.h //
  3. // //
  4. // DESCRIPTION : Header file for the CSnapinRoot class. //
  5. // This is the Comet Fax extension root //
  6. // of Comet snapin //
  7. // //
  8. // AUTHOR : yossg //
  9. // //
  10. // HISTORY : //
  11. // Sep 16 1998 yossg first implement for modem pooling //
  12. // Jan 12 1999 adik Add support fot parent array. //
  13. // Mar 30 1999 adik Supporting ICometSnapinNode. //
  14. // //
  15. // Sep 22 1999 yossg welcome To Fax Server //
  16. // //
  17. // Copyright (C) 1999 Microsoft Corporation All Rights Reserved //
  18. /////////////////////////////////////////////////////////////////////////////
  19. #ifndef ROOT_H_INCLUDED
  20. #define ROOT_H_INCLUDED
  21. #include "snapin.h"
  22. #include "snpnscp.h"
  23. class CSnapinRoot : public CNodeWithScopeChildrenList<CSnapinRoot, TRUE>
  24. {
  25. public:
  26. BEGIN_SNAPINCOMMAND_MAP(CSnapinRoot, FALSE)
  27. END_SNAPINCOMMAND_MAP()
  28. BEGIN_SNAPINTOOLBARID_MAP(CSnapinRoot)
  29. END_SNAPINTOOLBARID_MAP()
  30. CSnapinRoot(CSnapInItem * pParentNode, CSnapin * pComponentData) :
  31. CNodeWithScopeChildrenList<CSnapinRoot, TRUE>(pParentNode, pComponentData )
  32. {
  33. memset(&m_scopeDataItem, 0, sizeof(SCOPEDATAITEM));
  34. memset(&m_resultDataItem, 0, sizeof(RESULTDATAITEM));
  35. m_bstrServerName = L"";
  36. }
  37. ~CSnapinRoot()
  38. {
  39. }
  40. //
  41. // Create the first extention level snapin root nodes
  42. //
  43. virtual HRESULT PopulateScopeChildrenList();
  44. HRESULT SetServerName(BSTR bstrServerName);
  45. // static const GUID* m_NODETYPE;
  46. // static const OLECHAR* m_SZNODETYPE;
  47. // static const OLECHAR* m_SZDISPLAY_NAME;
  48. // static const CLSID* m_SNAPIN_CLASSID;
  49. private:
  50. //
  51. // Server Name
  52. //
  53. CComBSTR m_bstrServerName;
  54. };
  55. #endif // ! ROOT_H_INCLUDED