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.

74 lines
2.7 KiB

  1. //==============================================================;
  2. //
  3. // This source code is only intended as a supplement to existing Microsoft documentation.
  4. //
  5. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  6. // KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  7. // IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
  8. // PURPOSE.
  9. //
  10. // Copyright (C) 1999 Microsoft Corporation. All Rights Reserved.
  11. //==============================================================;
  12. #ifndef _SAMPCOMP_H_
  13. #define _SAMPCOMP_H_
  14. #include <mmc.h>
  15. #include "ClassExtSnap.h"
  16. class CComponent : public IComponent
  17. {
  18. private:
  19. ULONG m_cref;
  20. IConsole* m_ipConsole;
  21. IDisplayHelp* m_ipDisplayHelp;
  22. class CClassExtSnap *m_pComponentData;
  23. public:
  24. CComponent(CClassExtSnap *parent);
  25. ~CComponent();
  26. ///////////////////////////////
  27. // Interface IUnknown
  28. ///////////////////////////////
  29. STDMETHODIMP QueryInterface(REFIID riid, LPVOID *ppv);
  30. STDMETHODIMP_(ULONG) AddRef();
  31. STDMETHODIMP_(ULONG) Release();
  32. ///////////////////////////////
  33. // Interface IComponent
  34. ///////////////////////////////
  35. virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE Initialize(
  36. /* [in] */ LPCONSOLE lpConsole);
  37. virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE Notify(
  38. /* [in] */ LPDATAOBJECT lpDataObject,
  39. /* [in] */ MMC_NOTIFY_TYPE event,
  40. /* [in] */ LPARAM arg,
  41. /* [in] */ LPARAM param);
  42. virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE Destroy(
  43. /* [in] */ MMC_COOKIE cookie);
  44. virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE QueryDataObject(
  45. /* [in] */ MMC_COOKIE cookie,
  46. /* [in] */ DATA_OBJECT_TYPES type,
  47. /* [out] */ LPDATAOBJECT __RPC_FAR *ppDataObject);
  48. virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetResultViewType(
  49. /* [in] */ MMC_COOKIE cookie,
  50. /* [out] */ LPOLESTR __RPC_FAR *ppViewType,
  51. /* [out] */ long __RPC_FAR *pViewOptions);
  52. virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetDisplayInfo(
  53. /* [out][in] */ RESULTDATAITEM __RPC_FAR *pResultDataItem);
  54. virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE CompareObjects(
  55. /* [in] */ LPDATAOBJECT lpDataObjectA,
  56. /* [in] */ LPDATAOBJECT lpDataObjectB);
  57. };
  58. #endif _SAMPCOMP_H_