mirror of
https://github.com/chmod760/CopyReadProcessMemory
synced 2026-06-06 15:24:30 +00:00
43 lines
812 B
C++
43 lines
812 B
C++
// CopyRemote.cpp : Este archivo contiene la función "main". La ejecución del programa comienza y termina ahí.
|
|
//
|
|
|
|
#include <windows.h>
|
|
#include <iostream>
|
|
#include <string>
|
|
#include <stdexcept>
|
|
#include "cxxopts.hpp"
|
|
#include "argumentParser.h"
|
|
#include "handlers.h"
|
|
#include "Helper.h"
|
|
using namespace std;
|
|
|
|
|
|
int main(int argc, char* argv[]) {
|
|
|
|
try
|
|
{
|
|
ParsedArguments args = parse_arguments(argc, argv);
|
|
|
|
if (args.show_help)
|
|
{
|
|
print_help();
|
|
return 0;
|
|
}
|
|
|
|
if (args.show_version)
|
|
{
|
|
print_version();
|
|
return 0;
|
|
}
|
|
|
|
execute_selected_mode(args);
|
|
|
|
}
|
|
catch (const std::exception& e)
|
|
{
|
|
std::cerr << "Error [X]: " << e.what() << std::endl;
|
|
return 1;
|
|
}
|
|
|
|
return 0;
|
|
} |