Counter Strike : Global Offensive Source Code
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.

78 lines
3.1 KiB

  1. //------------------------------------------------------------------------------
  2. // File: DShow.h
  3. //
  4. // Desc: DirectShow top-level include file
  5. //
  6. // Copyright (c) 2000-2001, Microsoft Corporation. All rights reserved.
  7. //------------------------------------------------------------------------------
  8. #ifndef __DSHOW_INCLUDED__
  9. #define __DSHOW_INCLUDED__
  10. ///////////////////////////////////////////////////////////////////////////
  11. // Set up constants & pragmas for the compiler
  12. ///////////////////////////////////////////////////////////////////////////
  13. #ifdef _MSC_VER
  14. // disable some level-4 warnings, use #pragma warning(default:###) to re-enable
  15. #pragma warning(disable:4100) // warning C4100: unreferenced formal parameter
  16. #pragma warning(disable:4201) // warning C4201: nonstandard extension used : nameless struct/union
  17. #pragma warning(disable:4511) // warning C4511: copy constructor could not be generated
  18. #pragma warning(disable:4512) // warning C4512: assignment operator could not be generated
  19. #pragma warning(disable:4514) // warning C4514: "unreferenced inline function has been removed"
  20. #if _MSC_VER>=1100
  21. #define AM_NOVTABLE __declspec(novtable)
  22. #else
  23. #define AM_NOVTABLE
  24. #endif
  25. #endif // MSC_VER
  26. ///////////////////////////////////////////////////////////////////////////
  27. // Include standard Windows files
  28. ///////////////////////////////////////////////////////////////////////////
  29. #include <windows.h>
  30. #include <windowsx.h>
  31. #include <olectl.h>
  32. #include <ddraw.h>
  33. #include <mmsystem.h>
  34. #ifndef NUMELMS
  35. #define NUMELMS(aa) (sizeof(aa)/sizeof((aa)[0]))
  36. #endif
  37. ///////////////////////////////////////////////////////////////////////////
  38. // Include DirectShow include files
  39. ///////////////////////////////////////////////////////////////////////////
  40. #include <strmif.h> // Generated IDL header file for streams interfaces
  41. #include <amvideo.h> // ActiveMovie video interfaces and definitions
  42. #include <amaudio.h> // ActiveMovie audio interfaces and definitions
  43. #include <control.h> // generated from control.odl
  44. #include <evcode.h> // event code definitions
  45. #include <uuids.h> // declaration of type GUIDs and well-known clsids
  46. #include <errors.h> // HRESULT status and error definitions
  47. #include <edevdefs.h> // External device control interface defines
  48. #include <audevcod.h> // audio filter device error event codes
  49. #include <dvdevcod.h> // DVD error event codes
  50. ///////////////////////////////////////////////////////////////////////////
  51. // Define OLE Automation constants
  52. ///////////////////////////////////////////////////////////////////////////
  53. #ifndef OATRUE
  54. #define OATRUE (-1)
  55. #endif // OATRUE
  56. #ifndef OAFALSE
  57. #define OAFALSE (0)
  58. #endif // OAFALSE
  59. ///////////////////////////////////////////////////////////////////////////
  60. // Define Win64 interfaces if not already defined
  61. ///////////////////////////////////////////////////////////////////////////
  62. // InterlockedExchangePointer
  63. #ifndef InterlockedExchangePointer
  64. #define InterlockedExchangePointer(Target, Value) \
  65. (PVOID)InterlockedExchange((PLONG)(Target), (LONG)(Value))
  66. #endif
  67. #endif // __DSHOW_INCLUDED__