Windows NT 4.0 source code leak
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.

86 lines
2.3 KiB

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