diff --git a/reactos/include/dxsdk/ActiveCf.h b/reactos/include/dxsdk/ActiveCf.h new file mode 100644 index 00000000000..e3452256b03 --- /dev/null +++ b/reactos/include/dxsdk/ActiveCf.h @@ -0,0 +1,8 @@ + +typedef struct tagVFW_FILTERLIST +{ + UINT cFilters; + CLSID aClsId[1]; +} VFW_FILTERLIST; + +#define CFSTR_VFW_FILTERLIST "Video for Windows 4 Filters" diff --git a/reactos/include/dxsdk/amaudio.h b/reactos/include/dxsdk/amaudio.h new file mode 100644 index 00000000000..242b444c7bb --- /dev/null +++ b/reactos/include/dxsdk/amaudio.h @@ -0,0 +1,33 @@ + +#ifndef __AMAUDIO__ +#define __AMAUDIO__ + +#ifdef __cplusplus +extern "C" { +#endif + +#include +#include + +#undef INTERFACE +#define INTERFACE IAMDirectSound + +DECLARE_INTERFACE_(IAMDirectSound,IUnknown) +{ + STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID *ppvObj) PURE; + STDMETHOD_(ULONG,AddRef)(THIS) PURE; + STDMETHOD_(ULONG,Release)(THIS) PURE; + STDMETHOD(GetDirectSoundInterface)(THIS_ LPDIRECTSOUND *lplpds) PURE; + STDMETHOD(GetPrimaryBufferInterface)(THIS_ LPDIRECTSOUNDBUFFER *lplpdsb) PURE; + STDMETHOD(GetSecondaryBufferInterface)(THIS_ LPDIRECTSOUNDBUFFER *lplpdsb) PURE; + STDMETHOD(ReleaseDirectSoundInterface)(THIS_ LPDIRECTSOUND lpds) PURE; + STDMETHOD(ReleasePrimaryBufferInterface)(THIS_ LPDIRECTSOUNDBUFFER lpdsb) PURE; + STDMETHOD(ReleaseSecondaryBufferInterface)(THIS_ LPDIRECTSOUNDBUFFER lpdsb) PURE; + STDMETHOD(SetFocusWindow)(THIS_ HWND, BOOL) PURE ; + STDMETHOD(GetFocusWindow)(THIS_ HWND *, BOOL*) PURE ; +}; + +#ifdef __cplusplus +} +#endif +#endif diff --git a/reactos/include/dxsdk/amparse.h b/reactos/include/dxsdk/amparse.h new file mode 100644 index 00000000000..ae1a192f24a --- /dev/null +++ b/reactos/include/dxsdk/amparse.h @@ -0,0 +1,22 @@ + +#ifndef __AMPARSE__ +#define __AMPARSE__ + +#ifdef __cplusplus +extern "C" { +#endif + +DEFINE_GUID(IID_IAMParse, 0xC47A3420, 0x005C, 0x11D2, 0x90, 0x38, 0x00, 0xA0, 0xC9, 0x69, 0x72, 0x98); + +DECLARE_INTERFACE_(IAMParse, IUnknown) +{ + STDMETHOD(GetParseTime) (THIS_ REFERENCE_TIME *prtCurrent) PURE; + STDMETHOD(SetParseTime) (THIS_ REFERENCE_TIME rtCurrent) PURE; + STDMETHOD(Flush) (THIS) PURE; +}; + +#ifdef __cplusplus +} +#endif +#endif + diff --git a/reactos/include/dxsdk/atsmedia.h b/reactos/include/dxsdk/atsmedia.h new file mode 100644 index 00000000000..a139ffc185f --- /dev/null +++ b/reactos/include/dxsdk/atsmedia.h @@ -0,0 +1,17 @@ + +#if !defined(_BDAMEDIA_) + #error BDAMEDIA.H must be included before ATSCMEDIA.H +#endif + +#if !defined(_KSMEDIA_) + #error KSMEDIA.H must be included before BDAMEDIA.H +#endif + +#if !defined(_ATSCMEDIA_) +#define _ATSCMEDIA_ + +#define BDANETWORKTYPE_ATSC DEFINE_GUIDNAMED(BDANETWORKTYPE_ATSC) +#define STATIC_BDANETWORKTYPE_ATSC 0x71985F51, 0x1CA1, 0x11D3, 0x9C, 0xC8, 0x0, 0xC0, 0x4F, 0x79, 0x71, 0xE0 +DEFINE_GUIDSTRUCT("71985F51-1CA1-11D3-9CC8-00C04F7971E0", BDANETWORKTYPE_ATSC); +#endif + diff --git a/reactos/include/dxsdk/comlite.h b/reactos/include/dxsdk/comlite.h new file mode 100644 index 00000000000..48162576102 --- /dev/null +++ b/reactos/include/dxsdk/comlite.h @@ -0,0 +1,15 @@ + +#ifndef _INC_COMLITE_ +#define _INC_COMLITE_ +#define QzCLSIDFromString CLSIDFromString +#define QzCreateFilterObject CoCreateInstance +#define QzFreeUnusedLibraries CoFreeUnusedLibraries +#define QzGetMalloc CoGetMalloc +#define QzInitialize CoInitialize +#define QzTaskMemAlloc CoTaskMemAlloc +#define QzTaskMemRealloc CoTaskMemRealloc +#define QzTaskMemFree CoTaskMemFree +#define QzUninitialize CoUninitialize +#define QzStringFromGUID2 StringFromGUID2 + +#endif diff --git a/reactos/include/dxsdk/d3drmwin.h b/reactos/include/dxsdk/d3drmwin.h new file mode 100644 index 00000000000..d6de2dd3509 --- /dev/null +++ b/reactos/include/dxsdk/d3drmwin.h @@ -0,0 +1,28 @@ + +#ifndef __D3DRMWIN_H__ +#define __D3DRMWIN_H__ + +#ifndef WIN32 +#define WIN32 +#endif + +#include "d3drm.h" +#include "ddraw.h" +#include "d3d.h" + +#undef INTERFACE +#define INTERFACE IDirect3DRMWinDevice + +DECLARE_INTERFACE_(IDirect3DRMWinDevice, IDirect3DRMObject) +{ + IUNKNOWN_METHODS(PURE); + IDIRECT3DRMOBJECT_METHODS(PURE); + STDMETHOD(HandlePaint) (THIS_ HDC hdc) PURE; + STDMETHOD(HandleActivate) (THIS_ WORD wparam) PURE; +}; + +DEFINE_GUID(IID_IDirect3DRMWinDevice, 0xC5016CC0, 0xD273, 0x11CE, 0xAC, 0x48, 0x0, 0x0, 0xC0, 0x38, 0x25, 0xA1); +WIN_TYPES(IDirect3DRMWinDevice, DIRECT3DRMWINDEVICE); + +#endif + diff --git a/reactos/include/dxsdk/dmo.h b/reactos/include/dxsdk/dmo.h new file mode 100644 index 00000000000..4ef30b79439 --- /dev/null +++ b/reactos/include/dxsdk/dmo.h @@ -0,0 +1,19 @@ + +#ifndef __DMO_H__ +#define __DMO_H__ + +#include "mediaerr.h" + +#ifdef FIX_LOCK_NAME + #define Lock DMOLock +#endif + +#include "mediaobj.h" + +#ifdef FIX_LOCK_NAME + #undef Lock +#endif + +#include "dmoreg.h" +#include "dmort.h" + diff --git a/reactos/include/dxsdk/dv.h b/reactos/include/dxsdk/dv.h new file mode 100644 index 00000000000..cf9cbcfc316 --- /dev/null +++ b/reactos/include/dxsdk/dv.h @@ -0,0 +1,35 @@ + +#ifndef _DV_H_ +#define _DV_H_ + +typedef struct Tag_DVAudInfo +{ + BYTE bAudStyle[2]; + BYTE bAudQu[2]; + BYTE bNumAudPin; + WORD wAvgSamplesPerPinPerFrm[2]; + WORD wBlkMode; + WORD wDIFMode; + WORD wBlkDiv; + +} DVAudInfo; + +#define DV_AUDIOMODE 0x00000f00 +#define DV_AUDIOQU 0x07000000 +#define DV_AUDIOSMP 0x38000000 +#define DV_CAP_AUD16Bits 0x00 +#define DV_CAP_AUD12Bits 0x01 +#define DV_HD 0x01 +#define DV_DVSD_NTSC_FRAMESIZE 120000 +#define DV_DVSD_PAL_FRAMESIZE 144000 +#define DV_NTSC 0 +#define DV_NTSCPAL 0x00200000 +#define DV_PAL 1 +#define DV_SMCHN 0x0000e000 +#define DV_SD 0x00 +#define DV_SL 0x02 +#define DV_STYPE 0x001f0000 + +#define SIZE_DVINFO 0x20 + +#endif diff --git a/reactos/include/dxsdk/dxsdkver.h b/reactos/include/dxsdk/dxsdkver.h new file mode 100644 index 00000000000..c5cd5f7e77e --- /dev/null +++ b/reactos/include/dxsdk/dxsdkver.h @@ -0,0 +1,10 @@ +#ifndef _DXSDKVER_H_ + +#define _DXSDKVER_H_ + +#define _DXSDK_PRODUCT_MAJOR 9 +#define _DXSDK_PRODUCT_MINOR 04 +#define _DXSDK_BUILD_MAJOR 91 +#define _DXSDK_BUILD_MINOR 0000 + +#endif \ No newline at end of file diff --git a/reactos/include/dxsdk/errors.h b/reactos/include/dxsdk/errors.h new file mode 100644 index 00000000000..829dbf2aabe --- /dev/null +++ b/reactos/include/dxsdk/errors.h @@ -0,0 +1,38 @@ + +#ifndef __ERRORS__ +#define __ERRORS__ + +#ifdef __cplusplus +extern "C" { +#endif + +#ifndef _AMOVIE_ + #define AMOVIEAPI DECLSPEC_IMPORT +#else + #define AMOVIEAPI +#endif + +#define VFW_FIRST_CODE 0x200 +#define MAX_ERROR_TEXT_LEN 160 + +#include + +typedef BOOL (WINAPI* AMGETERRORTEXTPROCA)(HRESULT, char *, DWORD); +typedef BOOL (WINAPI* AMGETERRORTEXTPROCW)(HRESULT, WCHAR *, DWORD); + +AMOVIEAPI DWORD WINAPI AMGetErrorTextA( HRESULT hr , char *pbuffer , DWORD MaxLen); +AMOVIEAPI DWORD WINAPI AMGetErrorTextW( HRESULT hr , WCHAR *pbuffer , DWORD MaxLen); + +#ifdef UNICODE + #define AMGetErrorText AMGetErrorTextW + typedef AMGETERRORTEXTPROCW AMGETERRORTEXTPROC; +#else + #define AMGetErrorText AMGetErrorTextA + typedef AMGETERRORTEXTPROCA AMGETERRORTEXTPROC; +#endif + +#ifdef __cplusplus +} +#endif +#endif + diff --git a/reactos/include/dxsdk/ksguid.h b/reactos/include/dxsdk/ksguid.h new file mode 100644 index 00000000000..84b1e59487c --- /dev/null +++ b/reactos/include/dxsdk/ksguid.h @@ -0,0 +1,18 @@ +#define INITGUID +#include + +#ifndef STATICGUIDOF + #define STATICGUIDOF(guid) STATIC_##guid +#endif + +#if !defined( DEFINE_WAVEFORMATEX_GUID ) + #define DEFINE_WAVEFORMATEX_GUID(x) (USHORT)(x), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71 +#endif + +#if defined( DEFINE_GUIDEX ) + #undef DEFINE_GUIDEX + #define DEFINE_GUIDEX(name) EXTERN_C const CDECL GUID __declspec(selectany) name = { STATICGUIDOF(name) } +#else + #define DEFINE_GUIDEX(name) EXTERN_C const CDECL GUID __declspec(selectany) name = { STATICGUIDOF(name) } +#endif + diff --git a/reactos/include/dxsdk/mediaerr.h b/reactos/include/dxsdk/mediaerr.h new file mode 100644 index 00000000000..a3aa5a30fa5 --- /dev/null +++ b/reactos/include/dxsdk/mediaerr.h @@ -0,0 +1,11 @@ + +#ifndef _MEDIAERR_H_ +#define _MEDIAERR_H_ +#define DMO_E_INVALIDSTREAMINDEX 0x80040201 +#define DMO_E_INVALIDTYPE 0x80040202 +#define DMO_E_TYPE_NOT_SET 0x80040203 +#define DMO_E_NOTACCEPTING 0x80040204 +#define DMO_E_TYPE_NOT_ACCEPTED 0x80040205 +#define DMO_E_NO_MORE_ITEMS 0x80040206 +#endif _MEDIAERR_H_ +