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.

66 lines
3.8 KiB

  1. //***************************************************************************************************
  2. // PRNCTL.H
  3. //
  4. // C Header(Functions of controlling printer)
  5. //---------------------------------------------------------------------------------------------------
  6. // copyright(C) 1997-2000 CASIO COMPUTER CO.,LTD. / CASIO ELECTRONICS MANUFACTURING CO.,LTD.
  7. //***************************************************************************************************
  8. //***************************************************************************************************
  9. // Data define
  10. //***************************************************************************************************
  11. //---------------------------------------------------------------------------------------------------
  12. // Plane
  13. //---------------------------------------------------------------------------------------------------
  14. #define PLN_CYAN 0x8000
  15. #define PLN_MGENTA 0x4000
  16. #define PLN_YELLOW 0x2000
  17. #define PLN_BLACK 0x1000
  18. #define PLN_ALL (PLN_CYAN | PLN_MGENTA | PLN_YELLOW | PLN_BLACK)
  19. //---------------------------------------------------------------------------------------------------
  20. // Structure of spooling bitmap data
  21. //---------------------------------------------------------------------------------------------------
  22. typedef struct {
  23. WORD Style; // Type of spool
  24. WORD Plane; // Plane
  25. CMYK Color; // CMYK
  26. WORD Diz; // Type of dithering
  27. POINT DrawPos; // Start position of spooling
  28. WORD Width; // dot
  29. WORD Height; // dot
  30. WORD WidthByte; // byte
  31. LPBYTE lpBit; // bitamp data
  32. } DRWBMP, FAR *LPDRWBMP;
  33. //---------------------------------------------------------------------------------------------------
  34. // Structure of spooling CMYK bitmap data
  35. //---------------------------------------------------------------------------------------------------
  36. typedef struct {
  37. WORD Style; // Type of spool
  38. WORD Plane; // Plane
  39. WORD Frame; // Frame
  40. WORD DataBit; // Databit
  41. POINT DrawPos; // Start position of spool
  42. WORD Width; // dot
  43. WORD Height; // dot
  44. WORD WidthByte; // byte
  45. LPBYTE lpBit; // Bitmap data
  46. } DRWBMPCMYK, FAR *LPDRWBMPCMYK;
  47. //***************************************************************************************************
  48. // Functions
  49. //***************************************************************************************************
  50. //===================================================================================================
  51. // Spool bitmap data
  52. //===================================================================================================
  53. void FAR PASCAL PrnBitmap(PDEVOBJ, LPDRWBMP);
  54. //===================================================================================================
  55. // Spool CMYK bitmap data
  56. //===================================================================================================
  57. void FAR PASCAL PrnBitmapCMYK(PDEVOBJ, LPDRWBMPCMYK);
  58. // End of File