added files.
This commit is contained in:
commit
e908ab2355
353 files changed
+130515
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user