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.

47 lines
1.2 KiB

  1. //
  2. // Copyright 2001 - Microsoft Corporation
  3. //
  4. //
  5. // Created By:
  6. // Geoff Pease (GPease) 23-JAN-2001
  7. //
  8. // Maintained By:
  9. // Geoff Pease (GPease) 23-JAN-2001
  10. //
  11. #pragma once
  12. class
  13. CDocPropShExt
  14. : public IShellExtInit
  15. , public IShellPropSheetExt
  16. {
  17. private: // data
  18. ULONG _cRef; // Reference counter
  19. IUnknown * _punkSummary; // Summary page
  20. private: // methods
  21. explicit CDocPropShExt( void );
  22. ~CDocPropShExt( void );
  23. HRESULT
  24. Init( void );
  25. public: // methods
  26. static HRESULT
  27. CreateInstance( IUnknown ** ppunkOut );
  28. static HRESULT
  29. RegisterShellExtensions( BOOL fRegisterIn );
  30. // IUnknown
  31. STDMETHOD( QueryInterface )( REFIID riid, LPVOID *ppv );
  32. STDMETHOD_( ULONG, AddRef )( void );
  33. STDMETHOD_( ULONG, Release )( void );
  34. // IShellExtInit
  35. STDMETHOD( Initialize )( LPCITEMIDLIST pidlFolder, LPDATAOBJECT lpdobj, HKEY hkeyProgID );
  36. // IShellPropSheetExt
  37. STDMETHOD( AddPages )( LPFNADDPROPSHEETPAGE lpfnAddPage, LPARAM lParam);
  38. STDMETHOD( ReplacePage )( UINT uPageID, LPFNADDPROPSHEETPAGE lpfnReplacePage, LPARAM lParam );
  39. };