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.

110 lines
3.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, IExtendPropertySheet2, IExtendContextMenu
  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. ///////////////////////////////
  36. // Interface IUnknown
  37. ///////////////////////////////
  38. STDMETHODIMP QueryInterface(REFIID riid, LPVOID *ppv);
  39. STDMETHODIMP_(ULONG) AddRef();
  40. STDMETHODIMP_(ULONG) Release();
  41. ///////////////////////////////
  42. // Interface IComponentData
  43. ///////////////////////////////
  44. virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE Initialize(
  45. /* [in] */ LPUNKNOWN pUnknown);
  46. virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE CreateComponent(
  47. /* [out] */ LPCOMPONENT __RPC_FAR *ppComponent);
  48. virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE Notify(
  49. /* [in] */ LPDATAOBJECT lpDataObject,
  50. /* [in] */ MMC_NOTIFY_TYPE event,
  51. /* [in] */ LPARAM arg,
  52. /* [in] */ LPARAM param);
  53. virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE Destroy( void);
  54. virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE QueryDataObject(
  55. /* [in] */ MMC_COOKIE cookie,
  56. /* [in] */ DATA_OBJECT_TYPES type,
  57. /* [out] */ LPDATAOBJECT __RPC_FAR *ppDataObject);
  58. virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetDisplayInfo(
  59. /* [out][in] */ SCOPEDATAITEM __RPC_FAR *pScopeDataItem);
  60. virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE CompareObjects(
  61. /* [in] */ LPDATAOBJECT lpDataObjectA,
  62. /* [in] */ LPDATAOBJECT lpDataObjectB);
  63. //////////////////////////////////
  64. // Interface IExtendPropertySheet2
  65. //////////////////////////////////
  66. virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE CreatePropertyPages(
  67. /* [in] */ LPPROPERTYSHEETCALLBACK lpProvider,
  68. /* [in] */ LONG_PTR handle,
  69. /* [in] */ LPDATAOBJECT lpIDataObject);
  70. virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE QueryPagesFor(
  71. /* [in] */ LPDATAOBJECT lpDataObject);
  72. virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetWatermarks(
  73. /* [in] */ LPDATAOBJECT lpIDataObject,
  74. /* [out] */ HBITMAP __RPC_FAR *lphWatermark,
  75. /* [out] */ HBITMAP __RPC_FAR *lphHeader,
  76. /* [out] */ HPALETTE __RPC_FAR *lphPalette,
  77. /* [out] */ BOOL __RPC_FAR *bStretch);
  78. ///////////////////////////////
  79. // Interface IExtendContextMenu
  80. ///////////////////////////////
  81. virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE AddMenuItems(
  82. /* [in] */ LPDATAOBJECT piDataObject,
  83. /* [in] */ LPCONTEXTMENUCALLBACK piCallback,
  84. /* [out][in] */ long __RPC_FAR *pInsertionAllowed);
  85. virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE Command(
  86. /* [in] */ long lCommandID,
  87. /* [in] */ LPDATAOBJECT piDataObject);
  88. };
  89. #endif _SAMPCOMPDATA_H_