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.

82 lines
1.7 KiB

  1. // Copyright (c) Microsoft Corp. 1994-95
  2. #ifndef _RAMBO_
  3. #define _RAMBO_
  4. #include <windows.h>
  5. #include <pshpack2.h> // The structures in this file need to be word-aligned.
  6. // common header
  7. typedef struct
  8. {
  9. WORD cbRest;
  10. DWORD dwID;
  11. WORD wClass;
  12. }
  13. RESHDR, FAR *LPRESHDR;
  14. // resource classes
  15. #define ID_GLYPH 1
  16. #define ID_BRUSH 2
  17. #define ID_BITMAP 3
  18. #define ID_RPL 4
  19. #define ID_CONTROL 8
  20. #define ID_BAND 10
  21. // control IDs
  22. #define ID_BEGJOB 0x49505741 // "AWPI"
  23. #define ID_ENDPAGE 0x45474150 // "PAGE"
  24. #define ID_ENDJOB 0x4a444e45 // "ENDJ"
  25. // job header
  26. typedef struct BEGJOB
  27. {
  28. // common header
  29. WORD cbRest; // sizeof(BEGJOB) - sizeof(WORD)
  30. DWORD dwID; // ID_BEGJOB
  31. WORD wClass; // ID_CONTROL
  32. // image attributes
  33. DWORD xBand; // page width [pixels]
  34. DWORD yBand; // band height [pixels]
  35. WORD xRes; // horizontal resolution [dpi]
  36. WORD yRes; // vertical resolution [dpi]
  37. // memory attributes
  38. DWORD cbCache; // cache size [KB]
  39. WORD cResDir; // directory size
  40. BYTE bBitmap; // bitmap compression
  41. BYTE bGlyph; // glyph compression
  42. BYTE bBrush; // stock brush set
  43. BYTE bPad[3]; // reserved, must be 0
  44. }
  45. BEGJOB, FAR *LPBEGJOB;
  46. // job tailer
  47. typedef struct ENDJOB
  48. {
  49. // common header
  50. WORD cbRest; // sizeof(ENDJOB) - sizeof(WORD)
  51. DWORD dwID; // ID_ENDJOB
  52. WORD wClass; // ID_CONTROL
  53. // job attributes
  54. WORD cPage; // number of pages
  55. WORD yMax; // maximum height
  56. }
  57. ENDJOB, FAR *LPENDJOB;
  58. // bitmap header
  59. typedef struct
  60. {
  61. BYTE bComp;
  62. BYTE bLeftPad;
  63. WORD wHeight;
  64. WORD wWidth;
  65. }
  66. BMPHDR, FAR* LPBMPHDR;
  67. #include <poppack.h>
  68. #endif // _RAMBO_