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.

53 lines
1.5 KiB

  1. //
  2. // Copyright 2001 - Microsoft Corporation
  3. //
  4. //
  5. // Created By:
  6. // Geoff Pease (GPease) 27-MAR-2001
  7. //
  8. // Maintained By:
  9. // Geoff Pease (GPease) 27-MAR-2001
  10. //
  11. #pragma once
  12. class
  13. CLicensePage
  14. : public IShellPropSheetExt
  15. {
  16. private: // data
  17. ULONG _cRef; // reference counter
  18. HWND _hdlg; // dialog handle
  19. CPropertyCache * _pPropertyCache; // Property Cache - owned by the SummaryPage - DO NOT FREE!
  20. private: // methods
  21. explicit CLicensePage( void );
  22. ~CLicensePage( void );
  23. HRESULT
  24. Init( CPropertyCache * pPropertyCacheIn );
  25. //
  26. // Message Handlers
  27. //
  28. static INT_PTR CALLBACK
  29. DlgProc( HWND hDlgIn, UINT uMsgIn, WPARAM wParam, LPARAM lParam );
  30. static UINT CALLBACK
  31. PageCallback( HWND hwndIn, UINT uMsgIn, LPPROPSHEETPAGE ppspIn );
  32. LRESULT
  33. OnInitDialog( void );
  34. public: // methods
  35. static HRESULT
  36. CreateInstance( IUnknown ** ppunkOut, CPropertyCache * pPropertyCacheIn );
  37. // IUnknown
  38. STDMETHOD( QueryInterface )( REFIID riid, LPVOID *ppv );
  39. STDMETHOD_( ULONG, AddRef )( void );
  40. STDMETHOD_( ULONG, Release )( void );
  41. // IShellPropSheetExt
  42. STDMETHOD( AddPages )( LPFNADDPROPSHEETPAGE lpfnAddPage, LPARAM lParam);
  43. STDMETHOD( ReplacePage )( UINT uPageID, LPFNADDPROPSHEETPAGE lpfnReplacePage, LPARAM lParam );
  44. };