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.

67 lines
2.4 KiB

  1. #ifndef __PRECOMP_H_
  2. #define __PRECOMP_H_
  3. #include <windows.h>
  4. #include <math.h>
  5. #include <tchar.h>
  6. #include <stdio.h>
  7. #include <stdlib.h>
  8. #include "twain19.h" // standard TWAIN header (1.9 Version)
  9. #include <commctrl.h>
  10. #include "resource.h" // Resource IDs
  11. #include "dsloader.h" // import data source loader
  12. #include <ole2.h>
  13. #include "wia.h" // WIA application header
  14. #include "wiatwcmp.h" // WIA Twain compatibility layer support
  15. #include "coredbg.h" // WIA core debugging library
  16. #include "wiadss.h" // main DLL
  17. #include "utils.h" // helper funtions
  18. #include "progress.h" // progress dialog (used from Common UI)
  19. #include "cap.h" // capability negotiations
  20. #include "wiadev.h" // WIA device class
  21. #include "datasrc.h" // TWAIN data source base class
  22. #include "camerads.h" // TWAIN data source (camera specific)
  23. #include "scanerds.h" // TWAIN data source (scanner specific)
  24. #include "videods.h" // TWAIN data source (streaming video specific)
  25. #include "wiahelper.h" // WIA property access helper class
  26. #include <stilib.h>
  27. #define _USE_NONSPRINTF_CONVERSION
  28. ////////////////////////////////////////////////////////////
  29. // #define COREDBG_ERRORS 0x00000001
  30. // #define COREDBG_WARNINGS 0x00000002
  31. // #define COREDBG_TRACES 0x00000004
  32. // #define COREDBG_FNS 0x00000008
  33. ////////////////////////////////////////////////////////////
  34. #define TWAINDS_FNS 0x00000016
  35. #define WIADEVICE_FNS 0x00000032
  36. #define CAP_FNS 0x00000064
  37. //
  38. // override default WIA core debugging DBG_TRC macro.
  39. //
  40. #undef DBG_TRC
  41. #undef DBG_ERR
  42. #undef DBG_WRN
  43. #define DBG_TRC(x) DBG_PRT(x)
  44. #define DBG_WRN(x) \
  45. { \
  46. DBG_TRC(("================================= WARNING =====================================")); \
  47. DBG_TRC(x); \
  48. DBG_TRC(("===============================================================================")); \
  49. }
  50. #define DBG_ERR(x) \
  51. { \
  52. DBG_TRC(("********************************* ERROR ***************************************")); \
  53. DBG_TRC(x); \
  54. DBG_TRC(("*******************************************************************************")); \
  55. }
  56. #define DBG_FN_DS(x) DBG_FN(x)
  57. #define DBG_FN_WIADEV(x) DBG_FN(x)
  58. #define DBG_FN_CAP(x) DBG_FN(x)
  59. #endif