1
0
Fork 0
x64dbg/src/exe/x64dbg_exe.cpp

44 lines
1.1 KiB
C++
Raw Normal View History

/**
2016-09-27 08:06:07 +08:00
@file x64dbg_exe.cpp
@brief Implements the 64 debug executable class.
*/
#include <stdio.h>
#include <windows.h>
#include "crashdump.h"
#include "..\bridge\bridgemain.h"
#include "LoadResourceString.h"
/**
@fn int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd)
@brief Window main.
@param hInstance The instance.
@param hPrevInstance The previous instance.
@param lpCmdLine The command line.
@param nShowCmd The show command.
@return An APIENTRY.
*/
int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd)
{
CrashDumpInitialize();
const wchar_t* errormsg = BridgeInit();
if(errormsg)
{
MessageBoxW(0, errormsg, LoadResString(IDS_BRIDGEINITERR), MB_ICONERROR | MB_SYSTEMMODAL);
return 1;
}
errormsg = BridgeStart();
if(errormsg)
{
MessageBoxW(0, errormsg, LoadResString(IDS_BRIDGESTARTERR), MB_ICONERROR | MB_SYSTEMMODAL);
return 1;
}
return 0;
}