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.

54 lines
1.7 KiB

  1. /*--------------------------------------------------------------------------*
  2. *
  3. * Microsoft Windows
  4. * Copyright (C) Microsoft Corporation, 2000 - 2000
  5. *
  6. * File: viewext.h
  7. *
  8. * Contents: Header file for the built-in view extension snapin that extends
  9. * the snapins that ship with windows.
  10. *
  11. * History: 21 March 2000 vivekj Created
  12. *
  13. *--------------------------------------------------------------------------*/
  14. #pragma once
  15. // symbols defined in viewext.cpp
  16. extern const CLSID CLSID_ViewExtSnapin;
  17. extern LPCTSTR szClsid_ViewExtSnapin;
  18. // Registration helper.
  19. HRESULT WINAPI RegisterViewExtension (BOOL bRegister, CObjectRegParams& rObjParams, int idSnapinName);
  20. class CViewExtensionSnapin :
  21. public CComObjectRoot,
  22. public IExtendView,
  23. //public ISnapinAbout,
  24. //public ISnapinHelp,
  25. public CComCoClass<CViewExtensionSnapin, &CLSID_ViewExtSnapin>
  26. {
  27. public:
  28. typedef CViewExtensionSnapin ThisClass;
  29. BEGIN_COM_MAP(ThisClass)
  30. COM_INTERFACE_ENTRY(IExtendView)
  31. //COM_INTERFACE_ENTRY(ISnapinAbout)
  32. //COM_INTERFACE_ENTRY(ISnapinHelp)
  33. END_COM_MAP()
  34. DECLARE_NOT_AGGREGATABLE(ThisClass)
  35. static HRESULT WINAPI UpdateRegistry(BOOL bRegister)
  36. {
  37. CObjectRegParams op (CLSID_ViewExtSnapin, g_szMmcndmgrDll, _T("MMCViewExt 1.0 Object"), _T("NODEMGR.MMCViewExt.1"), _T("NODEMGR.MMCViewExt"));
  38. return (RegisterViewExtension (bRegister, op, IDS_ViewExtSnapinName));
  39. }
  40. public:
  41. STDMETHODIMP GetViews(LPDATAOBJECT pDataObject, LPVIEWEXTENSIONCALLBACK pViewExtensionCallback);
  42. };