windows-nt/Source/XPSP1/NT/base/mvdm/wow16/inc/multires.h
2020-09-26 16:20:57 +08:00

72 lines
1.4 KiB
C
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/************************************************************************/
/* */
/* MultiRes.H */
/* */
/* This contains the data structures of the new format */
/* for the resources; */
/* */
/* History: */
/* Created Nov, 1988 by Sankar */
/* */
/************************************************************************/
/* The width of the name field in the Data for the group resources */
#define NAMELEN 14
/* The bits per pixel can be 1, 4, 8 or 24 in the PM bitmap format */
#define MAXBITSPERPIXEL 24
#define DEVICEDEP 1
#define DEVICEINDEP 2
/* Header of the resource file in the new format */
struct tagNEWHEADER
{
WORD Reserved;
WORD ResType;
WORD ResCount;
};
typedef struct tagNEWHEADER FAR *LPNEWHEADER;
struct tagICONDIR
{
BYTE Width; /* 16, 32, 64 */
BYTE Height; /* 16, 32, 64 */
BYTE ColorCount; /* 2, 8, 16 */
BYTE reserved;
};
struct tagCURSORDIR
{
WORD Width;
WORD Height;
};
/* Structure of each entry in resource directory */
struct tagRESDIR
{
union
{
struct tagICONDIR Icon;
struct tagCURSORDIR Cursor;
} ResInfo;
WORD Planes;
WORD BitCount;
DWORD BytesInRes;
WORD idIcon;
};
typedef struct tagRESDIR FAR *LPRESDIR;
typedef BITMAPINFOHEADER *PBMPHEADER;
typedef BITMAPINFOHEADER FAR *LPBMPHEADER;