dxgi: Add a dxgi dll.
Henri Verbeet
hverbeet at codeweavers.com
Tue Oct 21 08:06:58 CDT 2008
---
dlls/dxgi/Makefile.in | 16 ++++++++++++++++
dlls/dxgi/dxgi.spec | 1 +
dlls/dxgi/dxgi_main.c | 42 ++++++++++++++++++++++++++++++++++++++++++
dlls/dxgi/dxgi_private.h | 31 +++++++++++++++++++++++++++++++
dlls/dxgi/version.rc | 26 ++++++++++++++++++++++++++
5 files changed, 116 insertions(+), 0 deletions(-)
create mode 100644 dlls/dxgi/Makefile.in
create mode 100644 dlls/dxgi/dxgi.spec
create mode 100644 dlls/dxgi/dxgi_main.c
create mode 100644 dlls/dxgi/dxgi_private.h
create mode 100644 dlls/dxgi/version.rc
diff --git a/dlls/dxgi/Makefile.in b/dlls/dxgi/Makefile.in
new file mode 100644
index 0000000..fde4b40
--- /dev/null
+++ b/dlls/dxgi/Makefile.in
@@ -0,0 +1,16 @@
+TOPSRCDIR = @top_srcdir@
+TOPOBJDIR = ../..
+SRCDIR = @srcdir@
+VPATH = @srcdir@
+MODULE = dxgi.dll
+IMPORTLIB = dxgi
+IMPORTS = kernel32
+
+C_SRCS = \
+ dxgi_main.c
+
+RC_SRCS = version.rc
+
+ at MAKE_DLL_RULES@
+
+ at DEPENDENCIES@ # everything below this line is overwritten by make depend
diff --git a/dlls/dxgi/dxgi.spec b/dlls/dxgi/dxgi.spec
new file mode 100644
index 0000000..df2b403
--- /dev/null
+++ b/dlls/dxgi/dxgi.spec
@@ -0,0 +1 @@
+@ stub CreateDXGIFactory
diff --git a/dlls/dxgi/dxgi_main.c b/dlls/dxgi/dxgi_main.c
new file mode 100644
index 0000000..5e0f8af
--- /dev/null
+++ b/dlls/dxgi/dxgi_main.c
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2008 Henri Verbeet for CodeWeavers
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ *
+ */
+
+#include "config.h"
+#include "wine/port.h"
+
+#include "dxgi_private.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(dxgi);
+
+BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
+{
+ TRACE("fdwReason %u\n", fdwReason);
+
+ switch(fdwReason)
+ {
+ case DLL_WINE_PREATTACH:
+ return TRUE;
+
+ case DLL_PROCESS_ATTACH:
+ DisableThreadLibraryCalls(hInstDLL);
+ break;
+ }
+
+ return TRUE;
+}
diff --git a/dlls/dxgi/dxgi_private.h b/dlls/dxgi/dxgi_private.h
new file mode 100644
index 0000000..a03659e
--- /dev/null
+++ b/dlls/dxgi/dxgi_private.h
@@ -0,0 +1,31 @@
+/*
+ * Copyright 2008 Henri Verbeet for CodeWeavers
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+#ifndef __WINE_DXGI_PRIVATE_H
+#define __WINE_DXGI_PRIVATE_H
+
+#include "wine/debug.h"
+
+#define COBJMACROS
+#include "winbase.h"
+#include "winuser.h"
+#include "objbase.h"
+
+#include "dxgi.h"
+
+#endif /* __WINE_DXGI_PRIVATE_H */
diff --git a/dlls/dxgi/version.rc b/dlls/dxgi/version.rc
new file mode 100644
index 0000000..bd51eb8
--- /dev/null
+++ b/dlls/dxgi/version.rc
@@ -0,0 +1,26 @@
+/*
+ * Copyright 2008 Henri Verbeet for CodeWeavers
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+#define WINE_FILEDESCRIPTION_STR "Wine DXGI"
+#define WINE_FILENAME_STR "dxgi.dll"
+#define WINE_FILEVERSION 6,0,6000,16386
+#define WINE_FILEVERSION_STR "6.0.6000.16386"
+#define WINE_PRODUCTVERSION 6,0,6000,16386
+#define WINE_PRODUCTVERSION_STR "6.0.6000.16386"
+
+#include "wine/wine_common_ver.rc"
--
1.5.6.4
--------------030404000602090508010700--
More information about the wine-patches
mailing list