added files.
This commit is contained in:
commit
e908ab2355
353 files changed
+130515
No files matched your search
@@ -0,0 +1,32 @@
|
||||
#pragma once
|
||||
|
||||
#include <windows.h>
|
||||
#include <string>
|
||||
#include <atomic>
|
||||
|
||||
namespace Slinky {
|
||||
|
||||
class ConsoleUI {
|
||||
public:
|
||||
static void Initialize();
|
||||
static void Shutdown();
|
||||
|
||||
static void PrintBanner();
|
||||
static void StartAnimation();
|
||||
static void StopAnimation();
|
||||
|
||||
static void SetStatusText(const char* text);
|
||||
static void PrintError(const char* action, DWORD errorCode);
|
||||
|
||||
private:
|
||||
static DWORD WINAPI AnimationThread(LPVOID lpParam);
|
||||
|
||||
static CRITICAL_SECTION s_CriticalSection;
|
||||
static char s_StatusText[512];
|
||||
static std::atomic<bool> s_Running;
|
||||
static HANDLE s_hAnimationThread;
|
||||
static DWORD s_OriginalConsoleMode;
|
||||
static HANDLE s_hConsole;
|
||||
};
|
||||
|
||||
} // namespace Slinky
|
||||
@@ -0,0 +1,15 @@
|
||||
#pragma once
|
||||
|
||||
#include <windows.h>
|
||||
#include <string>
|
||||
|
||||
namespace Slinky {
|
||||
|
||||
class Injector {
|
||||
public:
|
||||
static bool ExtractBundledDll(std::wstring& outDllPath, std::wstring& outLogPath);
|
||||
static bool InjectDll(DWORD pid, const std::wstring& dllPath);
|
||||
static bool MonitorStartup(DWORD pid, const std::wstring& logPath);
|
||||
};
|
||||
|
||||
} // namespace Slinky
|
||||
@@ -0,0 +1,23 @@
|
||||
#pragma once
|
||||
|
||||
#include <windows.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
namespace Slinky {
|
||||
|
||||
struct TargetWindow {
|
||||
HWND hWnd = nullptr;
|
||||
DWORD pid = 0;
|
||||
std::wstring title;
|
||||
};
|
||||
|
||||
class ProcessUtil {
|
||||
public:
|
||||
static std::vector<DWORD> GetJavaProcessIds();
|
||||
static std::vector<TargetWindow> FindMinecraftWindows();
|
||||
static bool IsModuleLoaded(DWORD pid, const wchar_t* moduleName);
|
||||
static bool WaitForModuleLoad(DWORD pid, const wchar_t* moduleName, DWORD timeoutMs);
|
||||
};
|
||||
|
||||
} // namespace Slinky
|
||||
@@ -0,0 +1,3 @@
|
||||
#pragma once
|
||||
|
||||
#define IDR_BUNDLED_DLL 200
|
||||
Reference in new issue
Block a user