Initial Commit

This commit is contained in:
Metick
2023-12-08 18:36:39 +01:00
commit 5322289850
27 changed files with 5559 additions and 0 deletions

37
Example/Example.cpp Normal file
View File

@@ -0,0 +1,37 @@
// Example.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include <iostream>
#include <DMALibrary/Memory/Memory.h>
int main()
{
if (!mem.Init("explorer.exe", true))
{
std::cout << "Failed to initilize DMA" << std::endl;
return 1;
}
std::cout << "DMA initilized" << std::endl;
if (!mem.GetKeyboard().InitKeyboard())
{
std::cout << "Failed to initialize keyboard hotkeys through kernel." << std::endl;
return 1;
}
//example keyboard usage.
//mem.GetKeyboard().IsKeyDown(VK_F5);
auto all_modules = mem.GetModuleList("explorer.exe");
std::cout << "Explorer.exe Modules: " << std::endl;
for (size_t i = 0; i < all_modules.size(); i++)
{
std::cout << "Module: " << all_modules[i] << std::endl;
}
std::cout << "Hello World!\n";
//pause();
Sleep(10000);
return 0;
}