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.4 KiB

  1. #ifndef __SCANERDS_H_
  2. #define __SCANERDS_H_
  3. class CWiaScannerDS : public CWiaDataSrc
  4. {
  5. protected:
  6. //
  7. // overridden function definitions
  8. //
  9. virtual TW_UINT16 OpenDS(PTWAIN_MSG ptwMsg);
  10. virtual TW_UINT16 CloseDS(PTWAIN_MSG ptwMsg);
  11. virtual TW_UINT16 EnableDS(TW_USERINTERFACE *pUI);
  12. virtual TW_UINT16 SetCapability(CCap *pCap, TW_CAPABILITY *ptwCap);
  13. virtual TW_UINT16 OnImageLayoutMsg(PTWAIN_MSG ptwMsg);
  14. virtual TW_UINT16 OnPendingXfersMsg (PTWAIN_MSG ptwMsg);
  15. virtual TW_UINT16 TransferToFile(GUID guidFormatID);
  16. virtual TW_UINT16 TransferToDIB(HGLOBAL *phDIB);
  17. virtual TW_UINT16 TransferToMemory(GUID guidFormatID);
  18. private:
  19. //
  20. // scanner specific function definitions
  21. //
  22. TW_UINT16 SetImageLayout(TW_IMAGELAYOUT *pImageLayout);
  23. TW_UINT16 GetImageLayout(TW_IMAGELAYOUT *pImageLayout);
  24. TW_UINT16 GetResolutions();
  25. TW_UINT16 GetSettings();
  26. TW_UINT16 SetSettings(CCap *pCap);
  27. BOOL IsUnknownPageLengthDevice();
  28. BOOL IsFeederEnabled();
  29. BOOL IsFeederEmpty();
  30. //
  31. // scanner specific member variables
  32. //
  33. DWORD m_FeederCaps;
  34. BOOL m_bEnforceUIMode;
  35. //
  36. // unknown page lenght scanning variables (cached data scans)
  37. //
  38. ULONG m_ulBitsSize;
  39. BOOL m_bUnknownPageLength;
  40. BOOL m_bUnknownPageLengthMultiPageOverRide;
  41. };
  42. #endif //__SCANERDS_H_