37const WCHAR v2_0[] = {
'v',
'2',
'.',
'0',
'.',
'5',
'0',
'7',
'2',
'7',0};
46 sprintf(
buf,
"{%08X-%04X-%04X-%02X%02X-%02X%02X%02X%02X%02X%02X}",
83 ok(0,
"unexpected call\n");
90 ok(0,
"unexpected call\n");
97 ok(0,
"unexpected call\n");
104 ok(0,
"unexpected call\n");
111 CorDebugExceptionCallbackType dwEventType,
DWORD dwFlags)
113 ok(0,
"unexpected call\n");
119 CorDebugExceptionUnwindCallbackType dwEventType,
DWORD dwFlags)
121 ok(0,
"unexpected call\n");
129 ok(0,
"unexpected call\n");
137 ok(0,
"unexpected call\n");
188 ok(0,
"unexpected call\n");
195 ok(0,
"unexpected call\n");
202 ok(0,
"unexpected call\n");
209 ok(0,
"unexpected call\n");
216 ok(0,
"unexpected call\n");
223 ok(0,
"unexpected call\n");
229 ok(0,
"unexpected call\n");
235 ok(0,
"unexpected call\n");
242 ok(0,
"unexpected call\n");
249 ok(0,
"unexpected call\n");
256 ok(0,
"unexpected call\n");
263 ok(0,
"unexpected call\n");
270 ok(0,
"unexpected call\n");
277 ok(0,
"unexpected call\n");
284 ok(0,
"unexpected call\n");
291 ok(0,
"unexpected call\n");
299 ok(0,
"unexpected call\n");
306 ok(0,
"unexpected call\n");
313 ok(0,
"unexpected call\n");
320 ok(0,
"unexpected call\n");
327 ok(0,
"unexpected call\n");
333 ok(0,
"unexpected call\n");
340 ok(0,
"unexpected call\n");
347 ok(0,
"unexpected call\n");
354 ok(0,
"unexpected call\n");
361 ok(0,
"unexpected call\n");
405 win_skip(
"mscoree.dll not available\n");
409 pCreateDebuggingInterfaceFromVersion = (
void *)
GetProcAddress(
hmscoree,
"CreateDebuggingInterfaceFromVersion");
411 if (!pCreateDebuggingInterfaceFromVersion)
413 win_skip(
"functions not available\n");
421#define check_process_enum(core, e) _check_process_enum(__LINE__, core, e)
427 hr = ICorDebug_EnumerateProcesses(pCorDebug,
NULL);
430 hr = ICorDebug_EnumerateProcesses(pCorDebug, &pProcessEnum);
436 hr = ICorDebugProcessEnum_GetCount(pProcessEnum, &cnt);
438 ok_(__FILE__,
line) (cnt == nExpected,
"expected %d got %d\n", nExpected, cnt);
440 ICorDebugProcessEnum_Release(pProcessEnum);
450 hr = pCreateDebuggingInterfaceFromVersion(0,
v2_0, &
pUnk);
453 hr = pCreateDebuggingInterfaceFromVersion(1,
v2_0, &
pUnk);
456 hr = pCreateDebuggingInterfaceFromVersion(2,
v2_0, &
pUnk);
459 hr = pCreateDebuggingInterfaceFromVersion(4,
v2_0, &
pUnk);
462 hr = pCreateDebuggingInterfaceFromVersion(3,
v2_0,
NULL);
465 hr = pCreateDebuggingInterfaceFromVersion(3,
v2_0, &
pUnk);
468 hr = IUnknown_QueryInterface(
pUnk, &IID_ICorDebug, (
void**)&pCorDebug);
469 ok(
hr ==
S_OK,
"expected S_OK got %08x\n",
hr);
472 hr = ICorDebug_Initialize(pCorDebug);
473 ok(
hr ==
S_OK,
"expected S_OK got %08x\n",
hr);
476 hr = ICorDebug_SetManagedHandler(pCorDebug,
NULL);
480 ok(
hr ==
S_OK,
"expected S_OK got %08x\n",
hr);
486 ICorDebug_Release(pCorDebug);
488 IUnknown_Release(
pUnk);
492 skip(
".NET 2.0 or mono not installed.\n");
static IUnknown **const WCHAR v2_0[]
static HRESULT WINAPI ManagedCallback_LogSwitch(ICorDebugManagedCallback *iface, ICorDebugAppDomain *pAppDomain, ICorDebugThread *pThread, LONG lLevel, ULONG ulReason, WCHAR *pLogSwitchName, WCHAR *pParentName)
static HRESULT WINAPI ManagedCallback2_QueryInterface(ICorDebugManagedCallback2 *iface, REFIID riid, void **ppv)
#define check_process_enum(core, e)
static BOOL init_functionpointers(void)
static ULONG WINAPI ManagedCallback2_AddRef(ICorDebugManagedCallback2 *iface)
static HRESULT WINAPI ManagedCallback_UnloadClass(ICorDebugManagedCallback *iface, ICorDebugAppDomain *pAppDomain, ICorDebugClass *c)
static ULONG WINAPI ManagedCallback_Release(ICorDebugManagedCallback *iface)
static HRESULT WINAPI ManagedCallback_EvalComplete(ICorDebugManagedCallback *iface, ICorDebugAppDomain *pAppDomain, ICorDebugThread *pThread, ICorDebugEval *pEval)
static HRESULT WINAPI ManagedCallback_NameChange(ICorDebugManagedCallback *iface, ICorDebugAppDomain *pAppDomain, ICorDebugThread *pThread)
static HRESULT WINAPI ManagedCallback_ExitProcess(ICorDebugManagedCallback *iface, ICorDebugProcess *pProcess)
static HRESULT WINAPI ManagedCallback_Break(ICorDebugManagedCallback *iface, ICorDebugAppDomain *pAppDomain, ICorDebugThread *thread)
static ULONG WINAPI ManagedCallback2_Release(ICorDebugManagedCallback2 *iface)
static HRESULT WINAPI ManagedCallback_LogMessage(ICorDebugManagedCallback *iface, ICorDebugAppDomain *pAppDomain, ICorDebugThread *pThread, LONG lLevel, WCHAR *pLogSwitchName, WCHAR *pMessage)
static HRESULT WINAPI ManagedCallback_LoadModule(ICorDebugManagedCallback *iface, ICorDebugAppDomain *pAppDomain, ICorDebugModule *pModule)
static HRESULT WINAPI ManagedCallback_UnloadModule(ICorDebugManagedCallback *iface, ICorDebugAppDomain *pAppDomain, ICorDebugModule *pModule)
static HRESULT WINAPI ManagedCallback_Exception(ICorDebugManagedCallback *iface, ICorDebugAppDomain *pAppDomain, ICorDebugThread *pThread, BOOL unhandled)
static HRESULT WINAPI ManagedCallback_ControlCTrap(ICorDebugManagedCallback *iface, ICorDebugProcess *pProcess)
static HRESULT WINAPI ManagedCallback_BreakpointSetError(ICorDebugManagedCallback *iface, ICorDebugAppDomain *pAppDomain, ICorDebugThread *pThread, ICorDebugBreakpoint *pBreakpoint, DWORD dwError)
static HRESULT WINAPI ManagedCallback2_Exception(ICorDebugManagedCallback2 *iface, ICorDebugAppDomain *pAppDomain, ICorDebugThread *pThread, ICorDebugFrame *pFrame, ULONG32 nOffset, CorDebugExceptionCallbackType dwEventType, DWORD dwFlags)
static HRESULT WINAPI ManagedCallback_LoadAssembly(ICorDebugManagedCallback *iface, ICorDebugAppDomain *pAppDomain, ICorDebugAssembly *pAssembly)
static HRESULT WINAPI ManagedCallback2_FunctionRemapComplete(ICorDebugManagedCallback2 *iface, ICorDebugAppDomain *pAppDomain, ICorDebugThread *pThread, ICorDebugFunction *pFunction)
static HRESULT WINAPI ManagedCallback_CreateThread(ICorDebugManagedCallback *iface, ICorDebugAppDomain *pAppDomain, ICorDebugThread *thread)
static HRESULT WINAPI ManagedCallback_QueryInterface(ICorDebugManagedCallback *iface, REFIID riid, void **ppv)
static HRESULT WINAPI ManagedCallback_CreateProcess(ICorDebugManagedCallback *iface, ICorDebugProcess *pProcess)
static HRESULT WINAPI ManagedCallback_LoadClass(ICorDebugManagedCallback *iface, ICorDebugAppDomain *pAppDomain, ICorDebugClass *c)
static ICorDebugManagedCallback ManagedCallback
static ICorDebugManagedCallback2 ManagedCallback2
static HRESULT WINAPI ManagedCallback_EvalException(ICorDebugManagedCallback *iface, ICorDebugAppDomain *pAppDomain, ICorDebugThread *pThread, ICorDebugEval *pEval)
static HRESULT WINAPI ManagedCallback_UnloadAssembly(ICorDebugManagedCallback *iface, ICorDebugAppDomain *pAppDomain, ICorDebugAssembly *pAssembly)
static HRESULT WINAPI ManagedCallback_ExitThread(ICorDebugManagedCallback *iface, ICorDebugAppDomain *pAppDomain, ICorDebugThread *thread)
static struct ICorDebugManagedCallback2Vtbl managedCallback2Vtbl
static HRESULT WINAPI ManagedCallback2_FunctionRemapOpportunity(ICorDebugManagedCallback2 *iface, ICorDebugAppDomain *pAppDomain, ICorDebugThread *pThread, ICorDebugFunction *pOldFunction, ICorDebugFunction *pNewFunction, ULONG32 oldILOffset)
static HRESULT WINAPI ManagedCallback_Breakpoint(ICorDebugManagedCallback *iface, ICorDebugAppDomain *pAppDomain, ICorDebugThread *pThread, ICorDebugBreakpoint *pBreakpoint)
static HRESULT WINAPI ManagedCallback2_ChangeConnection(ICorDebugManagedCallback2 *iface, ICorDebugProcess *pProcess, CONNID dwConnectionId)
static HRESULT WINAPI ManagedCallback_EditAndContinueRemap(ICorDebugManagedCallback *iface, ICorDebugAppDomain *pAppDomain, ICorDebugThread *pThread, ICorDebugFunction *pFunction, BOOL fAccurate)
static HRESULT WINAPI ManagedCallback_UpdateModuleSymbols(ICorDebugManagedCallback *iface, ICorDebugAppDomain *pAppDomain, ICorDebugModule *pModule, IStream *pSymbolStream)
static void test_createDebugger(void)
static ICorDebugManagedCallbackVtbl managedCallbackVtbl
static HRESULT WINAPI ManagedCallback2_MDANotification(ICorDebugManagedCallback2 *iface, ICorDebugController *pController, ICorDebugThread *pThread, ICorDebugMDA *pMDA)
static HRESULT WINAPI ManagedCallback2_DestroyConnection(ICorDebugManagedCallback2 *iface, ICorDebugProcess *pProcess, CONNID dwConnectionId)
static HRESULT WINAPI ManagedCallback2_ExceptionUnwind(ICorDebugManagedCallback2 *iface, ICorDebugAppDomain *pAppDomain, ICorDebugThread *pThread, CorDebugExceptionUnwindCallbackType dwEventType, DWORD dwFlags)
static HRESULT WINAPI ManagedCallback_DebuggerError(ICorDebugManagedCallback *iface, ICorDebugProcess *pProcess, HRESULT errorHR, DWORD errorCode)
static ULONG WINAPI ManagedCallback_AddRef(ICorDebugManagedCallback *iface)
static HRESULT WINAPI ManagedCallback_ExitAppDomain(ICorDebugManagedCallback *iface, ICorDebugProcess *pProcess, ICorDebugAppDomain *pAppDomain)
static void _check_process_enum(unsigned line, ICorDebug *pCorDebug, ULONG nExpected)
static HRESULT WINAPI ManagedCallback_StepComplete(ICorDebugManagedCallback *iface, ICorDebugAppDomain *pAppDomain, ICorDebugThread *pThread, ICorDebugStepper *pStepper, CorDebugStepReason reason)
static HRESULT WINAPI ManagedCallback_CreateAppDomain(ICorDebugManagedCallback *iface, ICorDebugProcess *pProcess, ICorDebugAppDomain *pAppDomain)
static HRESULT WINAPI ManagedCallback2_CreateConnection(ICorDebugManagedCallback2 *iface, ICorDebugProcess *pProcess, CONNID dwConnectionId, WCHAR *pConnName)
static WCHAR reason[MAX_STRING_RESOURCE_LEN]
#define GetProcAddress(x, y)
HINSTANCE WINAPI DECLSPEC_HOTPATCH LoadLibraryA(LPCSTR lpLibFileName)
HRESULT WINAPI CoInitialize(LPVOID lpReserved)
void WINAPI DECLSPEC_HOTPATCH CoUninitialize(void)
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
static void *static void *static LPDIRECTPLAY IUnknown * pUnk
GLenum GLuint GLenum GLsizei const GLchar * buf
#define sprintf(buf, format,...)
#define IsEqualGUID(rguid1, rguid2)
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags