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.

53 lines
1.2 KiB

  1. /*
  2. * ftps.hpp - File Types property sheet implementation for MIME types
  3. * description.
  4. */
  5. /* GUIDs
  6. ********/
  7. DEFINE_GUID(CLSID_MIMEFileTypesPropSheetHook, 0xFBF23B41L, 0xE3F0, 0x101B, 0x84, 0x88, 0x00, 0xAA, 0x00, 0x3E, 0x56, 0xF8);
  8. #ifdef __cplusplus
  9. /* Types
  10. ********/
  11. // MIME File Types property sheet hook
  12. class MIMEHook : public RefCount,
  13. public IShellExtInit,
  14. public IShellPropSheetExt
  15. {
  16. public:
  17. MIMEHook(void);
  18. ~MIMEHook(void);
  19. // IShellExtInit methods
  20. HRESULT STDMETHODCALLTYPE Initialize(LPCITEMIDLIST pidlFolder, IDataObject *pdtobj, HKEY hkeyProgID);
  21. // IShellPropSheetExt methods
  22. HRESULT STDMETHODCALLTYPE AddPages(LPFNADDPROPSHEETPAGE pfnAddPage, LPARAM lParam);
  23. HRESULT STDMETHODCALLTYPE ReplacePage(UINT uPageID, LPFNADDPROPSHEETPAGE pfnReplaceWith, LPARAM lParam);
  24. // IUnknown methods
  25. HRESULT STDMETHODCALLTYPE QueryInterface(REFIID riid, PVOID *ppvObj);
  26. ULONG STDMETHODCALLTYPE AddRef(void);
  27. ULONG STDMETHODCALLTYPE Release(void);
  28. // friends
  29. #ifdef DEBUG
  30. friend BOOL IsValidPCMIMEHook(const MIMEHook *pcmimehk);
  31. #endif
  32. };
  33. DECLARE_STANDARD_TYPES(MIMEHook);
  34. #endif /* __cplusplus */