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.

50 lines
1.6 KiB

  1. /******************************************************************************
  2. acquire.h
  3. Copyright (C) Microsoft Corporation, 1997 - 1998
  4. All rights reserved
  5. Notes:
  6. THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  7. KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  8. IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
  9. PURPOSE.
  10. ******************************************************************************/
  11. #include <scanner.h> // SCL commands
  12. //
  13. // Hewlett-Packard ScanJet command strings
  14. //
  15. WCHAR szScanReadyMfr[] = L"Hewlett-Packard";
  16. CHAR SCLReset[] = "E";
  17. CHAR SetXRes[] = "*a%dR";
  18. CHAR SetYRes[] = "*a%dS";
  19. CHAR SetXExtPix[] = "*f%dP";
  20. CHAR SetYExtPix[] = "*f%dQ";
  21. CHAR InqXRes[] = "*s10323R";
  22. CHAR SetBitsPerPixel[] = "*a%dG";
  23. CHAR SetIntensity[] = "*a%dL";
  24. CHAR SetContrast[] = "*a%dK";
  25. CHAR SetNegative[] = "*a%dI";
  26. CHAR SetMirror[] = "*a%dM";
  27. CHAR SetDataType[] = "*a%dT";
  28. CHAR ScanCmd[] = "*f0S";
  29. CHAR LampOn[] = "*f1L";
  30. CHAR LampOff[] = "*f0L";
  31. CHAR PollButton[] = "*s1044E";
  32. LPBITMAPINFO pDIB = NULL; // pointer to DIB bitmap header
  33. HBITMAP hDIBSection = NULL; // handle to DIB
  34. LPBYTE pDIBBits = NULL; // pointer to DIB bit data
  35. int m_XSize = 800, // horizontal size in pixels
  36. m_YSize = 800; // vertical size in pixels
  37. BYTE bRed = 0, // bitmap colors
  38. bGreen = 100,
  39. bBlue = 50;