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.

65 lines
2.4 KiB

  1. #ifndef __ISUPPFMT_H_INCLUDED
  2. #define __ISUPPFMT_H_INCLUDED
  3. #include <windows.h>
  4. #include <objbase.h>
  5. #include <wia.h>
  6. #undef INTERFACE
  7. #define INTERFACE IWiaSupportedFormats
  8. DECLARE_INTERFACE_(IWiaSupportedFormats, IUnknown)
  9. {
  10. // *** IUnknown methods ***
  11. STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR* ppvObj) PURE;
  12. STDMETHOD_(ULONG,AddRef) (THIS) PURE;
  13. STDMETHOD_(ULONG,Release) (THIS) PURE;
  14. // *** IWiaSupportedFormats methods ***
  15. STDMETHOD(Initialize)( THIS_
  16. IWiaItem *pWiaItem,
  17. LONG nMediaType
  18. ) PURE;
  19. STDMETHOD(GetFormatCount)( THIS_
  20. OUT LONG *pnCount
  21. ) PURE;
  22. STDMETHOD(GetFormatType)( THIS_
  23. IN LONG nFormat,
  24. OUT GUID *pcfClipFormat
  25. ) PURE;
  26. STDMETHOD(GetFormatExtension)( THIS_
  27. IN LONG nFormat,
  28. OUT LPWSTR pszExtension,
  29. IN int nMaxLen
  30. ) PURE;
  31. STDMETHOD(GetFormatDescription)( THIS_
  32. IN LONG nFormat,
  33. OUT LPWSTR pszDescription,
  34. IN int nMaxLen
  35. ) PURE;
  36. STDMETHOD(GetDefaultClipboardFileFormat)( THIS_
  37. OUT GUID *pcfFormat
  38. ) PURE;
  39. STDMETHOD(GetDefaultClipboardFileFormatIndex)( THIS_
  40. OUT LONG *pnFormat
  41. ) PURE;
  42. STDMETHOD(GetClipboardFileExtension)( THIS_
  43. IN GUID cfFormat,
  44. OUT LPWSTR pszExt,
  45. IN DWORD nMaxLen
  46. ) PURE;
  47. STDMETHOD(ChangeClipboardFileExtension)( THIS_
  48. IN GUID cfFormat, // IN. File type
  49. IN OUT LPWSTR pszFilename, // IN, OUT. Filename, with or without extension. It will be corrected to have the proper extension
  50. IN DWORD nMaxLen // IN. Maximum buffer length
  51. ) PURE;
  52. STDMETHOD(ConstructFileOpenDialogStyleString)( THIS_
  53. OUT BSTR *pbstrString
  54. ) PURE;
  55. };
  56. // {57F5D4A3-41D8-4BD3-9452-6E3026E63D1E}
  57. DEFINE_GUID(IID_IWiaSupportedFormats, 0x57F5D4A3, 0x41D8, 0x4BD3, 0x94, 0x52, 0x6E, 0x30, 0x26, 0xE6, 0x3D, 0x1E);
  58. #endif //__ISUPPFMT_H_INCLUDED