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.

82 lines
2.7 KiB

  1. /*++
  2. Copyright (c) 1996 - 1999 Microsoft Corporation
  3. Module Name:
  4. mini.h
  5. Abstract:
  6. Minidrv related header file.
  7. Environment:
  8. Windows NT Unidrv driver
  9. Revision History:
  10. 10/14/96 -amandan-
  11. Created
  12. dd-mm-yy -author-
  13. description
  14. --*/
  15. #ifndef _MINI_H_
  16. #define _MINI_H_
  17. typedef struct _MINIPAPERFORMAT {
  18. //
  19. // All paper units are in Master units
  20. //
  21. SIZEL szPaper; // Physical size of paper selected, in text resolution
  22. SIZEL szImageArea; // Imageable area of paper
  23. POINT ptImgOrigin; // X, Y origin of where image area starts
  24. POINT ptPrinterOffset; // X, Y offset to printer cursor position
  25. } MINIPAPERFORMAT, *PMINIPAPERFORMAT;
  26. typedef struct {
  27. DWORD fGeneral; /* Misc. flags for RASDD use*/
  28. DWORD fMGeneral; /* Misc. flags for minidriver use*/
  29. short iOrient; /* DMORIENT_LANDSCAPE else portrait */
  30. WORD fColorFormat; /* color flags DEVCOLOR: */
  31. short sDevPlanes; /* # of planes in the device color model, */
  32. short sBitsPixel; /* Bits per pixel - if Pixel model */
  33. int iLookAhead; /* Look ahead region: DeskJet type */
  34. int iyPrtLine; /* Current Y printer cursor position */
  35. MINIPAPERFORMAT minipf; /* paper format structure */
  36. SIZEL szlPage; /* Whole page, in graphics units */
  37. SIZEL szlBand; /* Size of banding region, if banding */
  38. BYTE *pMemBuf; /* Pointer to buffer for minidriver use (rasdd frees) */
  39. int iMemReq; /* Minidriver needs some memory */
  40. int ixgRes; /* Resolution, x graphics */
  41. int iygRes; /* Ditto, y */
  42. int iModel; /* index into the MODELDATA array. */
  43. int iCompMode; /* Which compression mode in use */
  44. short sImageControl; /* Index of Image Control in Use */
  45. short sTextQuality; /* Index of Text Quality in Use */
  46. short sPaperQuality; /* Index of Paper Quality in Use */
  47. short sPrintDensity; /* Index of Print Density in Use */
  48. short sColor; /* Index of DevColor Struct in Use */
  49. WORD wReserved; /* Alignment of struct */
  50. DWORD dwMReserved[16]; /* Reserved for minidriver use */
  51. DWORD dwReserved[16]; /* Reserved for future RASDD use */
  52. } MDEV;
  53. typedef MDEV *PMDEV;
  54. typedef struct{
  55. MDEV *pMDev;
  56. }
  57. M_UD_PDEV;
  58. #endif // !_MINI_H_