mirror of https://github.com/x64dbg/GleeBug
22 lines
629 B
C++
22 lines
629 B
C++
#include <cstdio>
|
|
#include "Debugger.Core.h"
|
|
|
|
int main()
|
|
{
|
|
wchar_t szFilePath[256] = L"c:\\CodeBlocks\\arma_cert_bin_info\\bin\\arma_cert_bin_info.exe";
|
|
wchar_t szCommandLine[256] = L"";
|
|
wchar_t szCurrentDir[256] = L"c:\\CodeBlocks\\arma_cert_bin_info\\bin";
|
|
ProcessInfo process;
|
|
if (Debugger::Init(szFilePath, NULL, szCurrentDir, &process))
|
|
{
|
|
printf("Debugger::Init success! PID: %X\n", process.ProcessId);
|
|
bool bDetached = Debugger::Detach();
|
|
printf("Debugger::Detach returned %s\n", bDetached ? "true" : "false");
|
|
}
|
|
else
|
|
{
|
|
puts("Debugger::Init failed!");
|
|
}
|
|
system("pause");
|
|
return 0;
|
|
} |