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.

61 lines
1.7 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows/NT **/
  3. /** Copyright(c) Microsoft Corporation, 1997 - 1998 **/
  4. /**********************************************************************/
  5. /*
  6. dynext.cpp
  7. dynamic extension helper
  8. FILE HISTORY:
  9. */
  10. #ifndef _DYNEXT_H
  11. #define _DYNEXT_H
  12. #ifndef _SNAPUTIL_H
  13. #include "snaputil.h"
  14. #endif
  15. class CDynamicExtensions
  16. {
  17. public:
  18. // These strings must remain unchanged until the FileServiceProvider is released
  19. CDynamicExtensions();
  20. virtual ~CDynamicExtensions();
  21. HRESULT SetNode(const GUID * guid);
  22. HRESULT Reset();
  23. HRESULT Load();
  24. HRESULT GetNamespaceExtensions(CGUIDArray & aGuids);
  25. HRESULT BuildMMCObjectTypes(HGLOBAL * phGlobal);
  26. BOOL IsLoaded() { return m_bLoaded; }
  27. protected:
  28. BOOL m_bLoaded;
  29. GUID m_guidNode;
  30. CGUIDArray m_aNameSpace;
  31. CGUIDArray m_aMenu;
  32. CGUIDArray m_aToolbar;
  33. CGUIDArray m_aPropSheet;
  34. CGUIDArray m_aTask;
  35. };
  36. /*!--------------------------------------------------------------------------
  37. SearchChildNodesForGuid
  38. Returns hrOK (and a pointer in ppChild, if that is non-NULL).
  39. Returns S_FALSE if a node (with the matching GUID) is not found.
  40. This will return the FIRST node that matches the GUID. If there
  41. are more than one node that has a GUID match, then you're on
  42. your own.
  43. Author: KennT
  44. ---------------------------------------------------------------------------*/
  45. HRESULT SearchChildNodesForGuid(ITFSNode *pParent, const GUID *pGuid, ITFSNode **ppChild);
  46. #endif // _DYNEXT_H