Leaked source code of windows server 2003
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.

88 lines
2.4 KiB

  1. /****************************** Module Header ******************************\
  2. * Copyright (c) 1991-1998 Microsoft Corporation
  3. *
  4. * Module Name: ASDF.H
  5. *
  6. * This header contains all structures and constants needed for manipulating
  7. * ASDF format data files.
  8. *
  9. * History:
  10. * 10-02-91 DarrinM Created.
  11. * 08-17-92 DarrinM Recreated in a RIFF compatible fashion.
  12. \***************************************************************************/
  13. #include <mmsystem.h>
  14. // RIFF chunk header.
  15. typedef struct _RTAG {
  16. FOURCC ckID;
  17. DWORD ckSize;
  18. } RTAG, *PRTAG;
  19. // Valid TAG types.
  20. // 'ANI ' - simple ANImation file
  21. #define FOURCC_ACON mmioFOURCC('A', 'C', 'O', 'N')
  22. // 'anih' - ANImation Header
  23. // Contains an ANIHEADER structure.
  24. #define FOURCC_anih mmioFOURCC('a', 'n', 'i', 'h')
  25. // 'rate' - RATE table (array of jiffies)
  26. // Contains an array of JIFs. Each JIF specifies how long the corresponding
  27. // animation frame is to be displayed before advancing to the next frame.
  28. // If the AF_SEQUENCE flag is set then the count of JIFs == anih.cSteps,
  29. // otherwise the count == anih.cFrames.
  30. #define FOURCC_rate mmioFOURCC('r', 'a', 't', 'e')
  31. // 'seq ' - SEQuence table (array of frame index values)
  32. // Countains an array of DWORD frame indices. anih.cSteps specifies how
  33. // many.
  34. #define FOURCC_seq mmioFOURCC('s', 'e', 'q', ' ')
  35. // 'fram' - list type for the icon list that follows
  36. #define FOURCC_fram mmioFOURCC('f', 'r', 'a', 'm')
  37. // 'icon' - Windows ICON format image (replaces MPTR)
  38. #define FOURCC_icon mmioFOURCC('i', 'c', 'o', 'n')
  39. // Standard tags (but for some reason not defined in MMSYSTEM.H)
  40. #define FOURCC_INFO mmioFOURCC('I', 'N', 'F', 'O') // INFO list
  41. #define FOURCC_IART mmioFOURCC('I', 'A', 'R', 'T') // Artist
  42. #define FOURCC_INAM mmioFOURCC('I', 'N', 'A', 'M') // Name/Title
  43. #if 0 //in winuser.w
  44. typedef DWORD JIF; // in winuser.w
  45. typedef struct _ANIHEADER { // anih
  46. DWORD cbSizeof;
  47. DWORD cFrames;
  48. DWORD cSteps;
  49. DWORD cx, cy;
  50. DWORD cBitCount, cPlanes;
  51. JIF jifRate;
  52. DWORD fl;
  53. } ANIHEADER, *PANIHEADER;
  54. // If the AF_ICON flag is specified the fields cx, cy, cBitCount, and
  55. // cPlanes are all unused. Each frame will be of type ICON and will
  56. // contain its own dimensional information.
  57. #define AF_ICON 0x0001L // Windows format icon/cursor animation
  58. #define AF_SEQUENCE 0x0002L // Animation is sequenced
  59. #endif