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.

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