Source code of Windows XP (NT5)
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.

64 lines
1.5 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1999 - 2000
  6. //
  7. // File: ShellExtensions.h
  8. //
  9. //--------------------------------------------------------------------------
  10. #ifndef __SHELLEXTENSIONS_H
  11. #define __SHELLEXTENSIONS_H
  12. class CLayerUIPropPage:
  13. IShellExtInit,
  14. IShellPropSheetExt,
  15. public CComObjectRoot,
  16. public CComCoClass<CLayerUIPropPage, &CLSID_ShimLayerPropertyPage>
  17. {
  18. BEGIN_COM_MAP(CLayerUIPropPage)
  19. COM_INTERFACE_ENTRY(IShellExtInit)
  20. COM_INTERFACE_ENTRY(IShellPropSheetExt)
  21. END_COM_MAP()
  22. public:
  23. DECLARE_REGISTRY_CLSID()
  24. CLayerUIPropPage();
  25. ~CLayerUIPropPage();
  26. //
  27. // IShellExtInit methods
  28. //
  29. STDMETHODIMP Initialize(LPCITEMIDLIST pIDFolder,
  30. LPDATAOBJECT pDataObj,
  31. HKEY hKeyID);
  32. //
  33. // IShellPropSheetExt methods
  34. //
  35. STDMETHODIMP AddPages(LPFNADDPROPSHEETPAGE lpfnAddPage,
  36. LPARAM lParam);
  37. STDMETHODIMP ReplacePage(UINT uPageID,
  38. LPFNADDPROPSHEETPAGE lpfnReplacePage,
  39. LPARAM lParam);
  40. friend INT_PTR CALLBACK
  41. LayerPageDlgProc(HWND hdlg,
  42. UINT uMsg,
  43. WPARAM wParam,
  44. LPARAM lParam);
  45. private:
  46. CComPtr<IDataObject> m_spDataObj;
  47. TCHAR m_szFile[MAX_PATH];
  48. };
  49. #endif // __SHELLEXTENSIONS_H