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.

79 lines
2.0 KiB

  1. #ifndef __RIFF_H__
  2. #define __RIFF_H__
  3. /****************************************************************************
  4. MODULE: RIFF.H
  5. Tab settings: Every 4 spaces
  6. Copyright 1996, Microsoft Corporation, All Rights Reserved.
  7. PURPOSE: Classes for reading and writing RIFF files
  8. CLASSES:
  9. CRIFFFile Encapsulates common RIFF file functionality
  10. Author(s): Name:
  11. ---------- ----------------
  12. DMS Daniel M. Sangster
  13. Revision History:
  14. -----------------
  15. Version Date Author Comments
  16. 1.0 25-Jul-96 DMS Created
  17. COMMENTS:
  18. ****************************************************************************/
  19. // the four-character codes (FOURCC) needed for .FRC RIFF format
  20. #define FCC_FORCE_EFFECT_RIFF mmioFOURCC('F','O','R','C')
  21. #define FCC_INFO_LIST mmioFOURCC('I','N','F','O')
  22. #define FCC_INFO_NAME_CHUNK mmioFOURCC('I','N','A','M')
  23. #define FCC_INFO_COMMENT_CHUNK mmioFOURCC('I','C','M','T')
  24. #define FCC_INFO_SOFTWARE_CHUNK mmioFOURCC('I','S','F','T')
  25. #define FCC_INFO_COPYRIGHT_CHUNK mmioFOURCC('I','C','O','P')
  26. #define FCC_TARGET_DEVICE_CHUNK mmioFOURCC('t','r','g','t')
  27. #define FCC_TRACK_LIST mmioFOURCC('t','r','a','k')
  28. #define FCC_EFFECT_LIST mmioFOURCC('e','f','c','t')
  29. #define FCC_ID_CHUNK mmioFOURCC('i','d',' ',' ')
  30. #define FCC_DATA_CHUNK mmioFOURCC('d','a','t','a')
  31. #define FCC_IMPLICIT_CHUNK mmioFOURCC('i','m','p','l')
  32. #define FCC_SPLINE_CHUNK mmioFOURCC('s','p','l','n')
  33. #define MAX_SIZE_SNAME (64)
  34. HRESULT RIFF_Open
  35. (
  36. LPCSTR lpszFilename,
  37. UINT nOpenFlags,
  38. PHANDLE lphmmio,
  39. LPMMCKINFO lpmmck,
  40. PDWORD pdwEffectSize
  41. );
  42. HRESULT
  43. RIFF_ReadEffect
  44. (
  45. HMMIO hmmio,
  46. LPDIFILEEFFECT lpDiFileEf
  47. );
  48. HRESULT RIFF_WriteEffect
  49. (
  50. HMMIO hmmio,
  51. LPDIFILEEFFECT lpDiFileEf
  52. );
  53. HRESULT RIFF_Close
  54. (
  55. HMMIO hmmio,
  56. UINT nFlags
  57. );
  58. #endif //__RIFF_H__