2022-07-18 18:36:26 -07:00
|
|
|
// SPDX-FileCopyrightText: 2022 yuzu Emulator Project
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
2022-07-10 08:29:10 -07:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <windows.h>
|
|
|
|
|
|
|
|
#include <dbghelp.h>
|
|
|
|
|
2022-07-30 07:23:14 -07:00
|
|
|
namespace MiniDump {
|
|
|
|
|
2022-07-10 08:29:10 -07:00
|
|
|
void CreateMiniDump(HANDLE process_handle, DWORD process_id, MINIDUMP_EXCEPTION_INFORMATION* info,
|
|
|
|
EXCEPTION_POINTERS* pep);
|
|
|
|
|
2022-07-13 09:14:48 -07:00
|
|
|
void DumpFromDebugEvent(DEBUG_EVENT& deb_ev, PROCESS_INFORMATION& pi);
|
2022-07-10 08:29:10 -07:00
|
|
|
bool SpawnDebuggee(const char* arg0, PROCESS_INFORMATION& pi);
|
|
|
|
void DebugDebuggee(PROCESS_INFORMATION& pi);
|
2022-07-30 07:23:14 -07:00
|
|
|
|
|
|
|
} // namespace MiniDump
|