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.

71 lines
1.4 KiB

  1. /************************************************************************/
  2. /* */
  3. /* MultiRes.H */
  4. /* */
  5. /* This contains the data structures of the new format */
  6. /* for the resources; */
  7. /* */
  8. /* History: */
  9. /* Created Nov, 1988 by Sankar */
  10. /* */
  11. /************************************************************************/
  12. /* The width of the name field in the Data for the group resources */
  13. #define NAMELEN 14
  14. /* The bits per pixel can be 1, 4, 8 or 24 in the PM bitmap format */
  15. #define MAXBITSPERPIXEL 24
  16. #define DEVICEDEP 1
  17. #define DEVICEINDEP 2
  18. /* Header of the resource file in the new format */
  19. struct tagNEWHEADER
  20. {
  21. WORD Reserved;
  22. WORD ResType;
  23. WORD ResCount;
  24. };
  25. typedef struct tagNEWHEADER FAR *LPNEWHEADER;
  26. struct tagICONDIR
  27. {
  28. BYTE Width; /* 16, 32, 64 */
  29. BYTE Height; /* 16, 32, 64 */
  30. BYTE ColorCount; /* 2, 8, 16 */
  31. BYTE reserved;
  32. };
  33. struct tagCURSORDIR
  34. {
  35. WORD Width;
  36. WORD Height;
  37. };
  38. /* Structure of each entry in resource directory */
  39. struct tagRESDIR
  40. {
  41. union
  42. {
  43. struct tagICONDIR Icon;
  44. struct tagCURSORDIR Cursor;
  45. } ResInfo;
  46. WORD Planes;
  47. WORD BitCount;
  48. DWORD BytesInRes;
  49. WORD idIcon;
  50. };
  51. typedef struct tagRESDIR FAR *LPRESDIR;
  52. typedef BITMAPINFOHEADER *PBMPHEADER;
  53. typedef BITMAPINFOHEADER FAR *LPBMPHEADER;
  54.