windows-nt/Source/XPSP1/NT/printscan/fax/provider/t30/headers/rambo.h

90 lines
1.7 KiB
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
// Copyright (c) Microsoft Corp. 1994-95
#ifndef _RAMBO_
#define _RAMBO_
#include <windows.h>
#ifndef WIN16 // remove WIN16 irritation
#pragma pack (push)
#pragma pack(1)
#endif
// common header
typedef struct
{
WORD cbRest;
DWORD dwID;
WORD wClass;
}
RESHDR, FAR *LPRESHDR;
// resource classes
#define ID_GLYPH 1
#define ID_BRUSH 2
#define ID_BITMAP 3
#define ID_RPL 4
#define ID_CONTROL 8
#define ID_BAND 10
// control IDs
#define ID_BEGJOB 0x49505741 // "AWPI"
#define ID_ENDPAGE 0x45474150 // "PAGE"
#define ID_ENDJOB 0x4a444e45 // "ENDJ"
// job header
typedef struct BEGJOB
{
// common header
WORD cbRest; // sizeof(BEGJOB) - sizeof(WORD)
DWORD dwID; // ID_BEGJOB
WORD wClass; // ID_CONTROL
// image attributes
DWORD xBand; // page width [pixels]
DWORD yBand; // band height [pixels]
WORD xRes; // horizontal resolution [dpi]
WORD yRes; // vertical resolution [dpi]
// memory attributes
DWORD cbCache; // cache size [KB]
WORD cResDir; // directory size
BYTE bBitmap; // bitmap compression
BYTE bGlyph; // glyph compression
BYTE bBrush; // stock brush set
BYTE bPad[3]; // reserved, must be 0
}
BEGJOB, FAR *LPBEGJOB;
// job tailer
typedef struct ENDJOB
{
// common header
WORD cbRest; // sizeof(ENDJOB) - sizeof(WORD)
DWORD dwID; // ID_ENDJOB
WORD wClass; // ID_CONTROL
// job attributes
WORD cPage; // number of pages
WORD yMax; // maximum height
}
ENDJOB, FAR *LPENDJOB;
// bitmap header
typedef struct
{
BYTE bComp;
BYTE bLeftPad;
WORD wHeight;
WORD wWidth;
}
BMPHDR, FAR* LPBMPHDR;
#ifndef WIN16 // remove WIN16 irritation
#pragma pack(pop)
#endif
#endif // _RAMBO_