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.

51 lines
1.7 KiB

  1. /*******************************************************************************
  2. *
  3. * (C) COPYRIGHT MICROSOFT CORP., 1997
  4. *
  5. * TITLE: IEnumWFI.h
  6. *
  7. * VERSION: 2.0
  8. *
  9. * AUTHOR: ByronC
  10. *
  11. * DATE: 8 Aug, 1998
  12. * 08/10/1999 - Converted from IEnumFormatEtc to IEnumWIA_FORMAT_INFO
  13. *
  14. * DESCRIPTION:
  15. * Declaration and definitions for the CEnumFormatEtc class.
  16. *
  17. *******************************************************************************/
  18. // IEnumWIA_FORMAT_INFO object is created from IWiaDataTransfer::idtEnumWIA_FORMAT_INFO.
  19. class CEnumWiaFormatInfo : public IEnumWIA_FORMAT_INFO
  20. {
  21. private:
  22. ULONG m_cRef; // Object reference count.
  23. ULONG m_iCur; // Current element.
  24. LONG m_cFormatInfo; // Number of WIA_FORMAT_INFO in use.
  25. WIA_FORMAT_INFO *m_pFormatInfo; // Source of WIA_FORMAT_INFO.
  26. CWiaItem *m_pCWiaItem; // The WIA Item whose WIA_FORMAT_INFO is being requested
  27. public:
  28. // Constructor, initialization and destructor methods.
  29. CEnumWiaFormatInfo();
  30. HRESULT Initialize(CWiaItem *pWiaItem);
  31. ~CEnumWiaFormatInfo();
  32. //IUnknown members that delegate to m_pUnkRef.
  33. HRESULT _stdcall QueryInterface(const IID& iid, void** ppv);
  34. ULONG _stdcall AddRef();
  35. ULONG _stdcall Release();
  36. //IEnumWIA_FORMAT_INFO members
  37. HRESULT __stdcall Next(
  38. ULONG cfi,
  39. WIA_FORMAT_INFO *pfi,
  40. ULONG *pcfi);
  41. HRESULT __stdcall Skip(ULONG cfi);
  42. HRESULT __stdcall Reset(void);
  43. HRESULT __stdcall Clone(IEnumWIA_FORMAT_INFO **ppIEnum);
  44. HRESULT __stdcall GetCount(ULONG *pcelt);
  45. };