cursoricon.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. /*
  2. * Cursor and icon definitions
  3. *
  4. * Copyright 1995 Alexandre Julliard
  5. *
  6. * This library is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU Lesser General Public
  8. * License as published by the Free Software Foundation; either
  9. * version 2.1 of the License, or (at your option) any later version.
  10. *
  11. * This library is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * Lesser General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU Lesser General Public
  17. * License along with this library; if not, write to the Free Software
  18. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  19. */
  20. #ifndef __WINE_CURSORICON_H
  21. #define __WINE_CURSORICON_H
  22. #include <windef.h>
  23. #include <pshpack1.h>
  24. typedef struct
  25. {
  26. BYTE bWidth;
  27. BYTE bHeight;
  28. BYTE bColorCount;
  29. BYTE bReserved;
  30. } ICONRESDIR;
  31. typedef struct
  32. {
  33. WORD wWidth;
  34. WORD wHeight;
  35. } CURSORDIR;
  36. typedef struct
  37. { union
  38. { ICONRESDIR icon;
  39. CURSORDIR cursor;
  40. } ResInfo;
  41. WORD wPlanes;
  42. WORD wBitCount;
  43. DWORD dwBytesInRes;
  44. WORD wResId;
  45. } CURSORICONDIRENTRY;
  46. typedef struct
  47. {
  48. WORD idReserved;
  49. WORD idType;
  50. WORD idCount;
  51. CURSORICONDIRENTRY idEntries[1];
  52. } CURSORICONDIR;
  53. typedef struct {
  54. BYTE bWidth;
  55. BYTE bHeight;
  56. BYTE bColorCount;
  57. BYTE bReserved;
  58. WORD xHotspot;
  59. WORD yHotspot;
  60. DWORD dwDIBSize;
  61. DWORD dwDIBOffset;
  62. } CURSORICONFILEDIRENTRY;
  63. typedef struct
  64. {
  65. WORD idReserved;
  66. WORD idType;
  67. WORD idCount;
  68. CURSORICONFILEDIRENTRY idEntries[1];
  69. } CURSORICONFILEDIR;
  70. #include <poppack.h>
  71. #define CID_RESOURCE 0x0001
  72. #define CID_WIN32 0x0004
  73. #define CID_NONSHARED 0x0008
  74. extern void CURSORICON_FreeModuleIcons( HMODULE16 hModule );
  75. #endif /* __WINE_CURSORICON_H */