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.

84 lines
2.6 KiB

  1. //==============================================================;
  2. //
  3. // This source code is only intended as a supplement to existing Microsoft documentation.
  4. //
  5. //
  6. //
  7. //
  8. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  9. // KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  10. // IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
  11. // PURPOSE.
  12. //
  13. // Copyright (C) 1999 Microsoft Corporation. All Rights Reserved.
  14. //
  15. //
  16. //
  17. //==============================================================;
  18. #ifndef _SAMPCOMPDATA_H_
  19. #define _SAMPCOMPDATA_H_
  20. #include <mmc.h>
  21. #include "DeleBase.h"
  22. #include "StatNode.h"
  23. #include "Comp.h"
  24. class CComponentData : public IComponentData
  25. {
  26. friend class CComponent;
  27. private:
  28. ULONG m_cref;
  29. LPCONSOLE m_ipConsole;
  30. LPCONSOLENAMESPACE m_ipConsoleNameSpace;
  31. CStaticNode *m_pStaticNode;
  32. public:
  33. CComponentData();
  34. ~CComponentData();
  35. LPCONSOLENAMESPACE GetConsoleNameSpace()
  36. {
  37. return m_ipConsoleNameSpace;
  38. }
  39. ///////////////////////////////
  40. // Interface IUnknown
  41. ///////////////////////////////
  42. STDMETHODIMP QueryInterface(REFIID riid, LPVOID *ppv);
  43. STDMETHODIMP_(ULONG) AddRef();
  44. STDMETHODIMP_(ULONG) Release();
  45. ///////////////////////////////
  46. // Interface IComponentData
  47. ///////////////////////////////
  48. virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE Initialize(
  49. /* [in] */ LPUNKNOWN pUnknown);
  50. virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE CreateComponent(
  51. /* [out] */ LPCOMPONENT __RPC_FAR *ppComponent);
  52. virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE Notify(
  53. /* [in] */ LPDATAOBJECT lpDataObject,
  54. /* [in] */ MMC_NOTIFY_TYPE event,
  55. /* [in] */ LPARAM arg,
  56. /* [in] */ LPARAM param);
  57. virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE Destroy( void);
  58. virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE QueryDataObject(
  59. /* [in] */ MMC_COOKIE cookie,
  60. /* [in] */ DATA_OBJECT_TYPES type,
  61. /* [out] */ LPDATAOBJECT __RPC_FAR *ppDataObject);
  62. virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetDisplayInfo(
  63. /* [out][in] */ SCOPEDATAITEM __RPC_FAR *pScopeDataItem);
  64. virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE CompareObjects(
  65. /* [in] */ LPDATAOBJECT lpDataObjectA,
  66. /* [in] */ LPDATAOBJECT lpDataObjectB);
  67. };
  68. #endif _SAMPCOMPDATA_H_