Volodymyr M. Shcherbyna : dbgeng: Add initial stub dll implementation.
Alexandre Julliard
julliard at winehq.org
Fri Nov 26 10:20:06 CST 2010
Module: wine
Branch: master
Commit: acee9cde176f0be10bbf619f975a6a61037281e5
URL: http://source.winehq.org/git/wine.git/?a=commit;h=acee9cde176f0be10bbf619f975a6a61037281e5
Author: Volodymyr M. Shcherbyna <volodymyr at shcherbyna.com>
Date: Sun Nov 21 21:40:04 2010 +0100
dbgeng: Add initial stub dll implementation.
---
configure | 1 +
configure.ac | 1 +
dlls/dbgeng/Makefile.in | 6 +++
dlls/dbgeng/dbgeng.c | 104 +++++++++++++++++++++++++++++++++++++++++++++++
dlls/dbgeng/dbgeng.spec | 3 +
5 files changed, 115 insertions(+), 0 deletions(-)
diff --git a/configure b/configure
index b9ff5e1..52d384f 100755
--- a/configure
+++ b/configure
@@ -14823,6 +14823,7 @@ wine_fn_config_dll d3dx9_42 enable_d3dx9_42
wine_fn_config_dll d3dx9_43 enable_d3dx9_43
wine_fn_config_dll d3dxof enable_d3dxof d3dxof
wine_fn_config_test dlls/d3dxof/tests d3dxof_test
+wine_fn_config_dll dbgeng enable_dbgeng dbgeng
wine_fn_config_dll dbghelp enable_dbghelp dbghelp
wine_fn_config_dll dciman32 enable_dciman32 dciman32
wine_fn_config_dll ddeml.dll16 enable_win16
diff --git a/configure.ac b/configure.ac
index 6ad4532..c72e51b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2400,6 +2400,7 @@ WINE_CONFIG_DLL(d3dx9_42)
WINE_CONFIG_DLL(d3dx9_43)
WINE_CONFIG_DLL(d3dxof,,[d3dxof])
WINE_CONFIG_TEST(dlls/d3dxof/tests)
+WINE_CONFIG_DLL(dbgeng,,[dbgeng])
WINE_CONFIG_DLL(dbghelp,,[dbghelp])
WINE_CONFIG_DLL(dciman32,,[dciman32])
WINE_CONFIG_DLL(ddeml.dll16,enable_win16)
diff --git a/dlls/dbgeng/Makefile.in b/dlls/dbgeng/Makefile.in
new file mode 100644
index 0000000..ba26387
--- /dev/null
+++ b/dlls/dbgeng/Makefile.in
@@ -0,0 +1,6 @@
+MODULE = dbgeng.dll
+IMPORTLIB = dbgeng
+
+C_SRCS = dbgeng.c
+
+ at MAKE_DLL_RULES@
diff --git a/dlls/dbgeng/dbgeng.c b/dlls/dbgeng/dbgeng.c
new file mode 100644
index 0000000..d213653
--- /dev/null
+++ b/dlls/dbgeng/dbgeng.c
@@ -0,0 +1,104 @@
+/*
+ * Support for Microsoft Debugging Extension API
+ *
+ * Copyright (C) 2010 Volodymyr Shcherbyna
+ *
+ * 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 <stdarg.h>
+
+#include "windef.h"
+#include "winbase.h"
+#include "winternl.h"
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(dbgeng);
+
+/************************************************************
+* DebugExtensionInitialize (DBGENG.@)
+*
+* Initializing Debug Engine
+*
+* PARAMS
+* pVersion [O] Recieving the version of extension
+* pFlags [O] Reserved
+*
+* RETURNS
+* Success: S_OK
+* Failure: Anything other than S_OK
+*
+* BUGS
+* Unimplemented
+*/
+HRESULT WINAPI DebugExtensionInitialize(ULONG * pVersion, ULONG * pFlags)
+{
+ FIXME("(%p,%p): stub\n", pVersion, pFlags);
+
+ SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+
+ return E_NOTIMPL;
+}
+
+/************************************************************
+* DebugCreate (DBGENG.@)
+*
+* Creating Debug Engine client object
+*
+* PARAMS
+* InterfaceId [I] Interface Id of debugger client
+* pInterface [O] Pointer to interface as requested via InterfaceId
+*
+* RETURNS
+* Success: S_OK
+* Failure: Anything other than S_OK
+*
+* BUGS
+* Unimplemented
+*/
+HRESULT WINAPI DebugCreate(REFIID InterfaceId, PVOID * pInterface)
+{
+ FIXME("(%p,%p): stub\n", InterfaceId, pInterface);
+
+ SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+
+ return E_NOTIMPL;
+}
+
+/************************************************************
+* DebugConnect (DBGENG.@)
+*
+* Creating Debug Engine client object and connecting it to remote host
+*
+* PARAMS
+* RemoteOptions [I] Options which define how debugger engine connects to remote host
+* InterfaceId [I] Interface Id of debugger client
+* pInterface [O] Pointer to interface as requested via InterfaceId
+*
+* RETURNS
+* Success: S_OK
+* Failure: Anything other than S_OK
+*
+* BUGS
+* Unimplemented
+*/
+HRESULT DebugConnect(PCSTR RemoteOptions, REFIID InterfaceId, PVOID * pInterface)
+{
+ FIXME("(%p,%p,%p): stub\n", RemoteOptions, InterfaceId, pInterface);
+
+ SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+
+ return E_NOTIMPL;
+}
diff --git a/dlls/dbgeng/dbgeng.spec b/dlls/dbgeng/dbgeng.spec
new file mode 100644
index 0000000..b2ba6f3
--- /dev/null
+++ b/dlls/dbgeng/dbgeng.spec
@@ -0,0 +1,3 @@
+@ stdcall DebugExtensionInitialize(ptr ptr)
+@ stdcall DebugCreate(ptr ptr)
+@ stdcall DebugConnect(ptr ptr ptr)
More information about the wine-cvs
mailing list