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.

95 lines
3.5 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 _SAMPCOMP_H_
  19. #define _SAMPCOMP_H_
  20. #include <mmc.h>
  21. class CComponent : public IComponent, IExtendPropertySheet2
  22. {
  23. private:
  24. ULONG m_cref;
  25. IConsole* m_ipConsole;
  26. class CComponentData *m_pComponentData;
  27. public:
  28. CComponent(CComponentData *parent);
  29. ~CComponent();
  30. ///////////////////////////////
  31. // Interface IUnknown
  32. ///////////////////////////////
  33. STDMETHODIMP QueryInterface(REFIID riid, LPVOID *ppv);
  34. STDMETHODIMP_(ULONG) AddRef();
  35. STDMETHODIMP_(ULONG) Release();
  36. ///////////////////////////////
  37. // Interface IComponent
  38. ///////////////////////////////
  39. virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE Initialize(
  40. /* [in] */ LPCONSOLE lpConsole);
  41. virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE Notify(
  42. /* [in] */ LPDATAOBJECT lpDataObject,
  43. /* [in] */ MMC_NOTIFY_TYPE event,
  44. /* [in] */ LPARAM arg,
  45. /* [in] */ LPARAM param);
  46. virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE Destroy(
  47. /* [in] */ MMC_COOKIE cookie);
  48. virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE QueryDataObject(
  49. /* [in] */ MMC_COOKIE cookie,
  50. /* [in] */ DATA_OBJECT_TYPES type,
  51. /* [out] */ LPDATAOBJECT __RPC_FAR *ppDataObject);
  52. virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetResultViewType(
  53. /* [in] */ MMC_COOKIE cookie,
  54. /* [out] */ LPOLESTR __RPC_FAR *ppViewType,
  55. /* [out] */ long __RPC_FAR *pViewOptions);
  56. virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetDisplayInfo(
  57. /* [out][in] */ RESULTDATAITEM __RPC_FAR *pResultDataItem);
  58. virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE CompareObjects(
  59. /* [in] */ LPDATAOBJECT lpDataObjectA,
  60. /* [in] */ LPDATAOBJECT lpDataObjectB);
  61. //////////////////////////////////
  62. // Interface IExtendPropertySheet2
  63. //////////////////////////////////
  64. virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE CreatePropertyPages(
  65. /* [in] */ LPPROPERTYSHEETCALLBACK lpProvider,
  66. /* [in] */ LONG_PTR handle,
  67. /* [in] */ LPDATAOBJECT lpIDataObject);
  68. virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE QueryPagesFor(
  69. /* [in] */ LPDATAOBJECT lpDataObject);
  70. virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetWatermarks(
  71. /* [in] */ LPDATAOBJECT lpIDataObject,
  72. /* [out] */ HBITMAP __RPC_FAR *lphWatermark,
  73. /* [out] */ HBITMAP __RPC_FAR *lphHeader,
  74. /* [out] */ HPALETTE __RPC_FAR *lphPalette,
  75. /* [out] */ BOOL __RPC_FAR *bStretch);
  76. };
  77. #endif _SAMPCOMP_H_