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.

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