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.

68 lines
2.4 KiB

  1. ////////////////////////////////////////////////////////////////////////////
  2. //
  3. // stuff needed for MCIAVI to run-time-link to AVIFile for playback.
  4. // because most everything from AVIFILE.DLL is a OLE interface, we dont need
  5. // to RTL to many functions.
  6. //
  7. ////////////////////////////////////////////////////////////////////////////
  8. #define USEAVIFILE //!!! hey lets use AVIFile.
  9. #ifdef USEAVIFILE
  10. //#define _INC_AVIFMT 100 /* version number * 100 + revision */
  11. #include <avifile.h>
  12. UINT uAVIFILE;
  13. HMODULE hdllAVIFILE;
  14. HMODULE hdllCOMPOBJ;
  15. //
  16. // RTL to AVIFile...
  17. //
  18. void (STDAPICALLTYPE *XAVIFileInit)(void);
  19. void (STDAPICALLTYPE *XAVIFileExit)(void);
  20. HRESULT (STDAPICALLTYPE *XAVIFileOpen)(PAVIFILE FAR * ppfile,LPCTSTR szFile,UINT uMode,LPCLSID lpHandler);
  21. HRESULT (STDAPICALLTYPE *XAVIMakeFileFromStreams)(PAVIFILE FAR *,int,PAVISTREAM FAR *);
  22. HRESULT (STDAPICALLTYPE *XAVIStreamBeginStreaming)(PAVISTREAM pavi,
  23. LONG lStart,
  24. LONG lEnd,
  25. LONG lRate);
  26. HRESULT (STDAPICALLTYPE *XAVIStreamEndStreaming)(PAVISTREAM pavi);
  27. #undef AVIFileInit
  28. #undef AVIFileExit
  29. #undef AVIFileOpen
  30. #undef AVIFileInfo
  31. #define AVIFileInit XAVIFileInit
  32. #define AVIFileExit XAVIFileExit
  33. #define AVIFileOpen XAVIFileOpen
  34. #define AVIMakeFileFromStreams XAVIMakeFileFromStreams
  35. #define AVIStreamBeginStreaming XAVIStreamBeginStreaming
  36. #define AVIStreamEndStreaming XAVIStreamEndStreaming
  37. #undef AVIFileClose
  38. #define AVIFileClose(p) (p)->lpVtbl->Release(p)
  39. #define AVIFileInfo(p,a,b) (p)->lpVtbl->Info(p, a, b)
  40. #define AVIFileGetStream(p,a,b,c) (p)->lpVtbl->GetStream(p,a,b,c)
  41. #undef AVIStreamClose
  42. #define AVIStreamClose(p) (p)->lpVtbl->Release(p)
  43. #define AVIStreamInfo(p,a,b) (p)->lpVtbl->Info(p, a, b)
  44. #define AVIStreamReadFormat(p,a,b,c) (p)->lpVtbl->ReadFormat(p, a, b, c)
  45. #define AVIStreamReadData(p,a,b,c) (p)->lpVtbl->ReadData(p, a, b, c)
  46. #define AVIStreamFindSample(p,a,b) (p)->lpVtbl->FindSample(p, a, b)
  47. #define AVIStreamRead(p,a,b,c,d,e,f) (p)->lpVtbl->Read(p,a,b,c,d,e,f)
  48. // RTL to COMPOBJ
  49. EXTERN_C BOOL STDAPICALLTYPE IsValidInterface(LPVOID pv);
  50. BOOL (STDAPICALLTYPE *XIsValidInterface)(LPVOID pv);
  51. #define IsValidInterface XIsValidInterface
  52. #endif // USEAVIFILE
  53.