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.

42 lines
1.0 KiB

  1. #ifndef __CAMERADS_H_
  2. #define __CAMERADS_H_
  3. class CWiaCameraDS : 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 SetCapability(CCap *pCap, TW_CAPABILITY *ptwCap);
  12. virtual TW_UINT16 EnableDS(TW_USERINTERFACE *pUI);
  13. virtual TW_UINT16 OnPendingXfersMsg (PTWAIN_MSG ptwMsg);
  14. virtual TW_UINT16 OnImageInfoMsg (PTWAIN_MSG ptwMsg);
  15. virtual TW_UINT16 TransferToDIB(HGLOBAL *phDIB);
  16. private:
  17. //
  18. // camera specific function definitions
  19. //
  20. TW_UINT16 SetArrayOfImageIndexes(TW_CAPABILITY *ptwCap);
  21. TW_UINT16 SetRangeOfImageIndexes(TW_CAPABILITY *ptwCap);
  22. //
  23. // camera specific member variables
  24. //
  25. BOOL m_bArrayModeAcquisition;
  26. LONG *m_pulImageIndexes;
  27. LONG m_lNumValidIndexes;
  28. LONG m_lCurrentArrayIndex;
  29. BOOL m_bRangeModeAcquisition;
  30. TW_RANGE m_twImageRange;
  31. };
  32. #endif // __CAMERADS_H_