Find some older works, dxsdk header compatible with dxsdk 2004 dec release. I will clean up sdk so dx thuse dx header belong to dxsdk will be here. later.

In this folder will contain all header that is compatible with dxsdk 2004 dec. later I will upgrade this folder file to more resent dxsdk headers. 

svn path=/trunk/; revision=26344
This commit is contained in:
Magnus Olsen 2007-04-14 18:54:57 +00:00
parent d5f02da15d
commit 83bf07aef3
7 changed files with 252 additions and 0 deletions

View file

@ -0,0 +1,45 @@
#pragma once
#pragma pack(push)
#ifdef __midl
typedef struct
{
WORD Bits;
} PID_BITS_MIDL;
typedef struct
{
WORD Bits;
} MPEG_HEADER_BITS_MIDL;
typedef struct
{
BYTE Bits;
} MPEG_HEADER_VERSION_BITS_MIDL;
#else
typedef struct
{
WORD Reserved : 3;
WORD ProgramId : 13;
} PID_BITS, *PPID_BITS;
typedef struct
{
WORD SectionLength : 12;
WORD Reserved : 2;
WORD PrivateIndicator : 1;
WORD SectionSyntaxIndicator : 1;
} MPEG_HEADER_BITS, *PMPEG_HEADER_BITS;
typedef struct
{
BYTE CurrentNextIndicator : 1;
BYTE VersionNumber : 5;
BYTE Reserved : 2;
} MPEG_HEADER_VERSION_BITS, *PMPEG_HEADER_VERSION_BITS;
#endif
#pragma pack(pop)

View file

@ -0,0 +1,28 @@
#ifndef __AUDEVCOD__
#define __AUDEVCOD__
#define EC_SND_DEVICE_ERROR_BASE 0x0200
#define EC_SNDDEV_IN_ERROR (EC_SND_DEVICE_ERROR_BASE + 0x00)
#define EC_SNDDEV_OUT_ERROR (EC_SND_DEVICE_ERROR_BASE + 0x01)
typedef enum _tagSND_DEVICE_ERROR
{
SNDDEV_ERROR_Open=1,
SNDDEV_ERROR_Close=2,
SNDDEV_ERROR_GetCaps=3,
SNDDEV_ERROR_PrepareHeader=4,
SNDDEV_ERROR_UnprepareHeader=5,
SNDDEV_ERROR_Reset=6,
SNDDEV_ERROR_Restart=7,
SNDDEV_ERROR_GetPosition=8,
SNDDEV_ERROR_Write=9,
SNDDEV_ERROR_Pause=10,
SNDDEV_ERROR_Stop=11,
SNDDEV_ERROR_Start=12,
SNDDEV_ERROR_AddBuffer=13,
SNDDEV_ERROR_Query=14,
} SNDDEV_ERR;
#endif

View file

@ -0,0 +1,64 @@
#ifdef __D3DX_INTERNAL__
#error Incorrect D3DX header used
#endif
#ifndef __D3DX9_H__
#define __D3DX9_H__
#include <limits.h>
#define D3DFMT_FROM_FILE ((D3DFORMAT) -3)
#define D3DX_DEFAULT ((UINT) -1)
#define D3DX_DEFAULT_FLOAT FLT_MAX
#define D3DX_DEFAULT_NONPOW2 ((UINT) -2)
#define D3DX_FROM_FILE ((UINT) -3)
#ifndef D3DXINLINE
#ifdef _MSC_VER
#if (_MSC_VER >= 1200)
#define D3DXINLINE __forceinline
#else
#define D3DXINLINE __inline
#endif
#elif __GNUC__
#define D3DXINLINE __inline
#else
#ifdef __cplusplus
#define D3DXINLINE inline
#else
#define D3DXINLINE
#endif
#endif
#endif
#include "d3d9.h"
#include "d3dx9math.h"
#include "d3dx9core.h"
#include "d3dx9xof.h"
#include "d3dx9mesh.h"
#include "d3dx9shader.h"
#include "d3dx9effect.h"
#include "d3dx9tex.h"
#include "d3dx9shape.h"
#include "d3dx9anim.h"
#define _FACDD 0x876
#define MAKE_DDHRESULT( code ) MAKE_HRESULT( 1, _FACDD, code )
enum _D3DXERR
{
D3DXERR_CANNOTMODIFYINDEXBUFFER = MAKE_DDHRESULT(2900),
D3DXERR_INVALIDMESH = MAKE_DDHRESULT(2901),
D3DXERR_CANNOTATTRSORT = MAKE_DDHRESULT(2902),
D3DXERR_SKINNINGNOTSUPPORTED = MAKE_DDHRESULT(2903),
D3DXERR_TOOMANYINFLUENCES = MAKE_DDHRESULT(2904),
D3DXERR_INVALIDDATA = MAKE_DDHRESULT(2905),
D3DXERR_LOADEDMESHASNODATA = MAKE_DDHRESULT(2906),
D3DXERR_DUPLICATENAMEDFRAGMENT = MAKE_DDHRESULT(2907),
D3DXERR_CANNOTREMOVELASTITEM = MAKE_DDHRESULT(2908),
};
#endif

View file

@ -0,0 +1,13 @@
#ifndef __DMORT_H__
#define __DMORT_H__
STDAPI MoCopyMediaType(DMO_MEDIA_TYPE *pmtDest, const DMO_MEDIA_TYPE *pmtSrc);
STDAPI MoCreateMediaType(DMO_MEDIA_TYPE **ppmt, DWORD cbFormat);
STDAPI MoDeleteMediaType(DMO_MEDIA_TYPE *pmt);
STDAPI MoDuplicateMediaType(DMO_MEDIA_TYPE **ppmtDest, const DMO_MEDIA_TYPE *pmtSrc);
STDAPI MoFreeMediaType(DMO_MEDIA_TYPE *pmt);
STDAPI MoInitMediaType(DMO_MEDIA_TYPE *pmt, DWORD cbFormat);
#endif

View file

@ -0,0 +1,19 @@
#ifndef _DMusBuff_
#define _DMusBuff_
#define DMUS_EVENT_STRUCTURED 0x00000001
#define QWORD_ALIGN(x) (((x) + 7) & ~7)
#define DMUS_EVENT_SIZE(cb) QWORD_ALIGN(sizeof(DMUS_EVENTHEADER) + cb)
#include <pshpack4.h>
typedef struct _DMUS_EVENTHEADER
{
DWORD cbEvent;
DWORD dwChannelGroup;
REFERENCE_TIME rtDelta;
DWORD dwFlags;
} DMUS_EVENTHEADER, *LPDMUS_EVENTHEADER;
#include <poppack.h>
#endif

View file

@ -0,0 +1,45 @@
#ifndef _DXERR8_H_
#define _DXERR8_H_
#ifdef __cplusplus
extern "C" {
#endif
const char* WINAPI DXGetErrorString8A(HRESULT hr);
const char* WINAPI DXGetErrorDescription8A(HRESULT hr);
HRESULT WINAPI DXTraceA( const char* strFile, DWORD dwLine, HRESULT hr, const char* strMsg, BOOL bPopMsgBox );
const WCHAR* WINAPI DXGetErrorString8W(HRESULT hr);
const WCHAR* WINAPI DXGetErrorDescription8W(HRESULT hr);
HRESULT WINAPI DXTraceW( const char* strFile, DWORD dwLine, HRESULT hr, const WCHAR* strMsg, BOOL bPopMsgBox );
#ifdef UNICODE
#define DXGetErrorString8 DXGetErrorString8W
#define DXGetErrorDescription8 DXGetErrorDescription8W
#define DXTrace DXTraceW
#else
#define DXGetErrorString8 DXGetErrorString8A
#define DXGetErrorDescription8 DXGetErrorDescription8A
#define DXTrace DXTraceA
#endif
#if defined(DEBUG) | defined(_DEBUG)
#define DXTRACE_MSG(str) DXTrace( __FILE__, (DWORD)__LINE__, 0, str, FALSE )
#define DXTRACE_ERR(str,hr) DXTrace( __FILE__, (DWORD)__LINE__, hr, str, TRUE )
#define DXTRACE_ERR_NOMSGBOX(str,hr) DXTrace( __FILE__, (DWORD)__LINE__, hr, str, FALSE )
#else
#define DXTRACE_MSG(str) (0L)
#define DXTRACE_ERR(str,hr) (hr)
#define DXTRACE_ERR_NOMSGBOX(str,hr) (hr)
#endif
#ifdef __cplusplus
}
#endif
#endif

View file

@ -0,0 +1,38 @@
#ifndef __IVPNotify__
#define __IVPNotify__
#ifdef __cplusplus
extern "C" {
#endif
DECLARE_INTERFACE_(IVPBaseNotify, IUnknown)
{
public:
STDMETHOD (RenegotiateVPParameters)(THIS_) PURE;
};
DECLARE_INTERFACE_(IVPNotify, IVPBaseNotify)
{
public:
STDMETHOD (SetDeinterlaceMode)(THIS_ IN AMVP_MODE mode) PURE;
STDMETHOD (GetDeinterlaceMode)(THIS_ OUT AMVP_MODE *pMode) PURE;
};
DECLARE_INTERFACE_(IVPNotify2, IVPNotify)
{
public:
STDMETHOD (SetVPSyncMaster)(THIS_ IN BOOL bVPSyncMaster) PURE;
STDMETHOD (GetVPSyncMaster)(THIS_ OUT BOOL *pbVPSyncMaster) PURE;
};
DECLARE_INTERFACE_(IVPVBINotify, IVPBaseNotify)
{
public:
};
#ifdef __cplusplus
}
#endif
#endif