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.

91 lines
2.9 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. ISnapinHelp
  26. {
  27. friend class CComponent;
  28. private:
  29. ULONG m_cref;
  30. LPCONSOLE m_ipConsole;
  31. LPCONSOLENAMESPACE m_ipConsoleNameSpace;
  32. CStaticNode *m_pStaticNode;
  33. WCHAR m_HelpFile[MAX_PATH];
  34. public:
  35. CComponentData();
  36. ~CComponentData();
  37. ///////////////////////////////
  38. // Interface IUnknown
  39. ///////////////////////////////
  40. STDMETHODIMP QueryInterface(REFIID riid, LPVOID *ppv);
  41. STDMETHODIMP_(ULONG) AddRef();
  42. STDMETHODIMP_(ULONG) Release();
  43. ///////////////////////////////
  44. // Interface IComponentData
  45. ///////////////////////////////
  46. virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE Initialize(
  47. /* [in] */ LPUNKNOWN pUnknown);
  48. virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE CreateComponent(
  49. /* [out] */ LPCOMPONENT __RPC_FAR *ppComponent);
  50. virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE Notify(
  51. /* [in] */ LPDATAOBJECT lpDataObject,
  52. /* [in] */ MMC_NOTIFY_TYPE event,
  53. /* [in] */ LPARAM arg,
  54. /* [in] */ LPARAM param);
  55. virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE Destroy( void);
  56. virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE QueryDataObject(
  57. /* [in] */ MMC_COOKIE cookie,
  58. /* [in] */ DATA_OBJECT_TYPES type,
  59. /* [out] */ LPDATAOBJECT __RPC_FAR *ppDataObject);
  60. virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetDisplayInfo(
  61. /* [out][in] */ SCOPEDATAITEM __RPC_FAR *pScopeDataItem);
  62. virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE CompareObjects(
  63. /* [in] */ LPDATAOBJECT lpDataObjectA,
  64. /* [in] */ LPDATAOBJECT lpDataObjectB);
  65. ///////////////////////////////
  66. // Interface ISnapinHelp
  67. ///////////////////////////////
  68. virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetHelpTopic(
  69. /* [out] */ LPOLESTR __RPC_FAR *lpCompiledHelpFile);
  70. public:
  71. // CComponent *getComponent() { return m_pComponent; }
  72. };
  73. #endif _SAMPCOMPDATA_H_