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.

47 lines
1.6 KiB

  1. /****************************************************************************
  2. *
  3. * (C) COPYRIGHT 1998-2001, MICROSOFT CORP.
  4. *
  5. * FILE: wiatwcmp.h
  6. *
  7. * VERSION: 1.0
  8. *
  9. * DATE: 6/01/2001
  10. *
  11. * DESCRIPTION:
  12. * Defines TWAIN Compatibility Layer - Capability pass-through constants.
  13. * To support existing TWAIN applications that have private capabilities,
  14. * WIA drivers can utilize the Pass-through functionality.
  15. *
  16. *****************************************************************************/
  17. #ifndef _WIATWCMP_H_
  18. #define _WIATWCMP_H_
  19. #define WiaItemTypeTwainCapabilityPassThrough 0x00020000
  20. //**************************************************************************
  21. //
  22. // TWAIN capability pass-through
  23. //
  24. //**************************************************************************
  25. //
  26. // Escape code ranges 2001 - 3000 are reserved for future ESC_ commands
  27. //
  28. #define ESC_TWAIN_CAPABILITY 2001 // private TWAIN capability negotiation
  29. #define ESC_TWAIN_PRIVATE_SUPPORTED_CAPS 2002 // query for supported private capabilities
  30. typedef struct _TWAIN_CAPABILITY {
  31. LONG lSize; // size of TWAIN_CAPABILITY structure
  32. LONG lMSG; // TWAIN Message, MSG_GET, MSG_GETCURRENT, MSG_SET, etc..
  33. LONG lCapID; // id of capability to set or get
  34. LONG lConType; // container type of capability
  35. LONG lRC; // TWAIN return code, TWRC_SUCCESS, TWRC_FAILURE, etc..
  36. LONG lCC; // TWAIN condition code, TWCC_SUCCESS, TWCC_BUMMER, etc..
  37. LONG lDataSize;// data size
  38. BYTE Data[1]; // first BYTE of data
  39. }TWAIN_CAPABILITY,*PTWAIN_CAPABILITY;
  40. #endif