From d20b00b875bd2d805bcda317f03fc545b8982ea8 Mon Sep 17 00:00:00 2001 From: Richard Campbell Date: Wed, 12 Nov 2003 21:15:07 +0000 Subject: [PATCH] Very basic dll, needs a makefile and none of the functions are implemented, more soon... svn path=/trunk/; revision=6633 --- reactos/lib/d3d9/d3d9.c | 52 +++++++++++++++++++++++++++++++++++++++ reactos/lib/d3d9/d3d9.def | 8 ++++++ reactos/lib/d3d9/d3d9.edf | 8 ++++++ reactos/lib/d3d9/d3d9.h | 3 +++ reactos/lib/d3d9/d3d9.rc | 37 ++++++++++++++++++++++++++++ 5 files changed, 108 insertions(+) create mode 100644 reactos/lib/d3d9/d3d9.c create mode 100644 reactos/lib/d3d9/d3d9.def create mode 100644 reactos/lib/d3d9/d3d9.edf create mode 100644 reactos/lib/d3d9/d3d9.h create mode 100644 reactos/lib/d3d9/d3d9.rc diff --git a/reactos/lib/d3d9/d3d9.c b/reactos/lib/d3d9/d3d9.c new file mode 100644 index 00000000000..be990d68d36 --- /dev/null +++ b/reactos/lib/d3d9/d3d9.c @@ -0,0 +1,52 @@ +#include +#include "d3d9.h" + +HRESULT DLLAPI Direct3DShaderValidatorCreate9(void) +{ + OutputDebugString("Direct3DShaderValidatorCreate9 not implemented."); + return 0; +} + +HRESULT DLLAPI PSGPError(void) +{ + OutputDebugString("PSGPError not implemented."); + return 0; +} + +HRESULT DLLAPI PSGPSampleTexture(void) +{ + OutputDebugString("PSGPSampleTexture not implemented."); + return 0; +} + +HRESULT DLLAPI DebugSetLevel(void) +{ + OutputDebugString("DebugSetLevel not implemented."); + return 0; +} + +HRESULT DLLAPI DebugSetMute(DWORD dw1) +{ + OutputDebugString("DebugSetMute not implemented."); + return 0; +} + +DWORD DLLAPI Direct3DCreate9( UINT SDKVersion ) +{ + OutputDebugString("Direct3DCreate9 not implemented."); + return 0; +} + +BOOL APIENTRY DllMain(HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved) +{ + switch (ul_reason_for_call) + { + case DLL_PROCESS_ATTACH: + case DLL_THREAD_ATTACH: + case DLL_THREAD_DETACH: + case DLL_PROCESS_DETACH: + break; + } + + return TRUE; +} diff --git a/reactos/lib/d3d9/d3d9.def b/reactos/lib/d3d9/d3d9.def new file mode 100644 index 00000000000..c42b78b1686 --- /dev/null +++ b/reactos/lib/d3d9/d3d9.def @@ -0,0 +1,8 @@ +LIBRARY d3d9 +EXPORTS + Direct3DShaderValidatorCreate9 + PSGPError + PSGPSampleTexture + DebugSetLevel + DebugSetMute + Direct3DCreate9 diff --git a/reactos/lib/d3d9/d3d9.edf b/reactos/lib/d3d9/d3d9.edf new file mode 100644 index 00000000000..c42b78b1686 --- /dev/null +++ b/reactos/lib/d3d9/d3d9.edf @@ -0,0 +1,8 @@ +LIBRARY d3d9 +EXPORTS + Direct3DShaderValidatorCreate9 + PSGPError + PSGPSampleTexture + DebugSetLevel + DebugSetMute + Direct3DCreate9 diff --git a/reactos/lib/d3d9/d3d9.h b/reactos/lib/d3d9/d3d9.h new file mode 100644 index 00000000000..ba1f5287713 --- /dev/null +++ b/reactos/lib/d3d9/d3d9.h @@ -0,0 +1,3 @@ +#include + +#define DLLAPI __declspec(dllexport) diff --git a/reactos/lib/d3d9/d3d9.rc b/reactos/lib/d3d9/d3d9.rc new file mode 100644 index 00000000000..82ff8bab4a8 --- /dev/null +++ b/reactos/lib/d3d9/d3d9.rc @@ -0,0 +1,37 @@ +#include +#include + +LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US + +VS_VERSION_INFO VERSIONINFO + FILEVERSION RES_UINT_FV_MAJOR,RES_UINT_FV_MINOR,RES_UINT_FV_REVISION,RES_UINT_FV_BUILD + PRODUCTVERSION RES_UINT_PV_MAJOR,RES_UINT_PV_MINOR,RES_UINT_PV_REVISION,RES_UINT_PV_BUILD + FILEFLAGSMASK 0x3fL +#ifdef _DEBUG + FILEFLAGS 0x1L +#else + FILEFLAGS 0x0L +#endif + FILEOS 0x40004L + FILETYPE 0x2L + FILESUBTYPE 0x0L +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "040904b0" + BEGIN + VALUE "CompanyName", RES_STR_COMPANY_NAME + VALUE "FileDescription", "ReactOS Direct3D\0" + VALUE "FileVersion", RES_STR_FILE_VERSION + VALUE "InternalName", "d3d9\0" + VALUE "LegalCopyright", RES_STR_LEGAL_COPYRIGHT + VALUE "OriginalFilename", "d3d9.dll\0" + VALUE "ProductName", RES_STR_PRODUCT_NAME + VALUE "ProductVersion", RES_STR_PRODUCT_VERSION + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x409, 1200 + END +END