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

  1. /* This file is os2data.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 OS2DATA_H
  21. #define OS2DATA_H
  22.  
  23. typedef struct _os2_icon_hdr {
  24.   USHORT flag;
  25.   ULONG  cbsize;
  26.   ULONG  next;
  27.   USHORT display_width;
  28.   USHORT display_height;
  29. } os2_icon_hdr;
  30.  
  31. /* *********************************************** OS/2 1.2 */
  32.  
  33. typedef struct _os2_12_rgb_info {
  34.   BYTE   blue;
  35.   BYTE   green;
  36.   BYTE   red;
  37. } os2_12_rgb_info;
  38.  
  39. typedef struct _os2_12_bitmap_info {
  40.   USHORT flag;
  41.   ULONG  cbsize;
  42.   USHORT hotx, hoty;
  43.   ULONG  bitmap_offset;
  44.   ULONG  bitmap_size;
  45.   USHORT width, height, planes, bits_per_pixel;
  46.   os2_12_rgb_info *p;
  47. } os2_12_bitmap_info;
  48.  
  49. typedef struct _os2_12_icon_info {
  50.   os2_icon_hdr        header;
  51.   os2_12_bitmap_info  andxor_map;
  52.   os2_12_bitmap_info  clr_map;
  53. } os2_12_icon_info;
  54.  
  55. /* *********************************************** OS/2 2.0 */
  56.  
  57. typedef struct _os2_20_rgb_info {
  58.   BYTE   blue;
  59.   BYTE   green;
  60.   BYTE   red;
  61.   BYTE   unused;
  62. } os2_20_rgb_info;
  63.  
  64. typedef struct _os2_20_bitmap_info {
  65.   USHORT flag;
  66.   ULONG  cbsize;
  67.   USHORT hotx;
  68.   USHORT hoty;
  69.   ULONG  bitmap_offset;
  70.   ULONG  length;
  71.   ULONG  width;
  72.   ULONG  height;
  73.   USHORT planes;
  74.   USHORT bits_per_pixel;
  75.   ULONG  compression;
  76.   ULONG  bitmap_size;
  77.   ULONG  devXres;
  78.   ULONG  devYres;
  79.   ULONG  clrUsed;
  80.   ULONG  clrImportant;
  81.   USHORT units;
  82.   USHORT reserved;
  83.   USHORT recording;
  84.   USHORT rendering;
  85.   ULONG  size1;
  86.   ULONG  size2;
  87.   ULONG  color_encoding;
  88.   ULONG  app_identifier;
  89.   os2_20_rgb_info  *p;
  90. } os2_20_bitmap_info;
  91.  
  92. typedef struct _os2_20_icon_info {
  93.   os2_icon_hdr        header;
  94.   os2_20_bitmap_info  andxor_map;
  95.   os2_20_bitmap_info  clr_map;
  96. } os2_20_icon_info;
  97.  
  98. #endif /* not OS2DATA_H */
  99.  
  100.