home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / xicon05.zip / windata.h < prev    next >
C/C++ Source or Header  |  1993-05-06  |  2KB  |  66 lines

  1. /* This file is windata.h (part of XIcon)
  2.  *
  3.  * Copyright (C) 1993 by Norman Walsh
  4.  *
  5.  *   This program is free software; you can redistribute it and/or modify
  6.  *   it under the terms of the GNU General Public License as published by
  7.  *   the Free Software Foundation; either version 2 of the License, or
  8.  *   (at your option) any later version.
  9.  *
  10.  *   This program is distributed in the hope that it will be useful,
  11.  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13.  *   GNU General Public License for more details.
  14.  *
  15.  *   You should have received a copy of the GNU General Public License
  16.  *   along with this program; if not, write to the Free Software
  17.  *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18.  ************************************************************************/
  19.  
  20. #ifndef WINDATA_H
  21. #define WINDATA_H
  22.  
  23. #include "icondata.h"
  24.  
  25. typedef struct _win_rgb_info {
  26.   BYTE   blue;
  27.   BYTE   green;
  28.   BYTE   red;
  29.   BYTE   unused;
  30. } win_rgb_info;
  31.  
  32. typedef struct _WinIconDirEntry {
  33.   BYTE   bWidth;
  34.   BYTE   bHeight;
  35.   BYTE   bColorCount;
  36.   BYTE   bReserved;
  37.   USHORT wPlanes;
  38.   USHORT wBitCount;
  39.   ULONG  dwBytesInRes;
  40.   ULONG  dwImageOffset;
  41. } WinIconDirEntry;
  42.  
  43. typedef struct _WinIconHeader {
  44.   USHORT idReserved;
  45.   USHORT idType;
  46.   USHORT idCount;
  47. } WinIconHeader;
  48.  
  49. typedef struct _WinIconBitInfoHdr {
  50.   ULONG  biSize;
  51.   ULONG  biWidth;
  52.   ULONG  biHeight;
  53.   USHORT biPlanes;
  54.   USHORT biBitCount;
  55.   ULONG  biCompression;
  56.   ULONG  biSizeImage;
  57.   ULONG  biXPelsPerMeter;
  58.   ULONG  biYPelsPerMeter;
  59.   ULONG  biClrUsed;
  60.   ULONG  biClrImportant;
  61.   win_rgb_info *p;
  62. } WinIconBitInfoHdr;
  63.  
  64. #endif /* not WINDATA_H */
  65.  
  66.