dbgeng: Improve GetDebuggeeType() stub.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2019-04-24 08:35:32 +03:00 committed by Alexandre Julliard
parent 75aa4ab16b
commit 3842fe5ae3
2 changed files with 37 additions and 3 deletions

View File

@ -2525,11 +2525,24 @@ static HRESULT STDMETHODCALLTYPE debugcontrol_OutputStackTrace(IDebugControl2 *i
return E_NOTIMPL;
}
static HRESULT STDMETHODCALLTYPE debugcontrol_GetDebuggeeType(IDebugControl2 *iface, ULONG *_class, ULONG *qualifier)
static HRESULT STDMETHODCALLTYPE debugcontrol_GetDebuggeeType(IDebugControl2 *iface, ULONG *debug_class,
ULONG *qualifier)
{
FIXME("%p, %p, %p stub.\n", iface, _class, qualifier);
struct debug_client *debug_client = impl_from_IDebugControl2(iface);
static struct target_process *target;
return E_NOTIMPL;
FIXME("%p, %p, %p stub.\n", iface, debug_class, qualifier);
*debug_class = DEBUG_CLASS_UNINITIALIZED;
*qualifier = 0;
if (!(target = debug_client_get_target(debug_client)))
return E_UNEXPECTED;
*debug_class = DEBUG_CLASS_USER_WINDOWS;
*qualifier = DEBUG_USER_WINDOWS_PROCESS;
return S_OK;
}
static HRESULT STDMETHODCALLTYPE debugcontrol_GetActualProcessorType(IDebugControl2 *iface, ULONG *type)

View File

@ -169,6 +169,27 @@ DEFINE_GUID(IID_IDebugSystemObjects3, 0xe9676e2f, 0xe286, 0x4ea3, 0xb0, 0xf9
#define DEBUG_MODNAME_SYMBOL_FILE 3
#define DEBUG_MODNAME_MAPPED_IMAGE 4
#define DEBUG_CLASS_UNINITIALIZED 0
#define DEBUG_CLASS_KERNEL 1
#define DEBUG_CLASS_USER_WINDOWS 2
#define DEBUG_CLASS_IMAGE_FILE 3
#define DEBUG_DUMP_SMALL 1024
#define DEBUG_DUMP_DEFAULT 1025
#define DEBUG_DUMP_FULL 1026
#define DEBUG_DUMP_IMAGE_FILE 1027
#define DEBUG_DUMP_TRACE_LOG 1028
#define DEBUG_DUMP_WINDOWS_CE 1029
#define DEBUG_DUMP_ACTIVE 1030
#define DEBUG_USER_WINDOWS_PROCESS 0
#define DEBUG_USER_WINDOWS_PROCESS_SERVER 1
#define DEBUG_USER_WINDOWS_IDNA 2
#define DEBUG_USER_WINDOWS_REPT 3
#define DEBUG_USER_WINDOWS_SMALL_DUMP DEBUG_DUMP_SMALL
#define DEBUG_USER_WINDOWS_DUMP DEBUG_DUMP_DEFAULT
#define DEBUG_USER_WINDOWS_DUMP_WINDOWS_CE DEBUG_DUMP_WINDOWS_CE
#define DEBUG_INVALID_OFFSET ((ULONG64)-1)
#define DEBUG_ANY_ID 0xffffffff