something

This commit is contained in:
恍兮惚兮 2024-04-16 21:44:37 +08:00
parent c0d38c25f1
commit d49125d5e4
4 changed files with 11 additions and 4 deletions

View File

@ -91,3 +91,4 @@
#define HS_SEARCH_FOR_TEXT L"Search for specific text"
#define VersionLatest L"Latest version"
#define VersionCurrent L"Current version"
#define ProjectHomePage L"Project homepage: https://github.com/HIllya51/LunaHook"

View File

@ -91,3 +91,4 @@
#define HS_SEARCH_FOR_TEXT L"搜索指定文本"
#define VersionLatest L"最新版本"
#define VersionCurrent L"当前版本"
#define ProjectHomePage L"项目主页: https://github.com/HIllya51/LunaHook"

View File

@ -15,6 +15,7 @@ std::unordered_map<std::wstring,std::vector<int>> getprocesslist()
PROCESSENTRY32 pe32;
pe32.dwSize = sizeof(PROCESSENTRY32);
wchar_t buff[65535];
auto currpid=GetCurrentProcessId();
if (Process32First(hSnapshot, &pe32))
{
do
@ -25,6 +26,7 @@ std::unordered_map<std::wstring,std::vector<int>> getprocesslist()
PROCESS_VM_OPERATION |
PROCESS_VM_WRITE |
PROCESS_VM_READ);
if(pe32.th32ProcessID==currpid)continue;
AutoHandle<> handle = OpenProcess(PROCESS_INJECT_ACCESS, 0, pe32.th32ProcessID);
if (handle == 0)continue;
DWORD sz = 65535;

View File

@ -207,8 +207,10 @@ namespace Host
textThreadsByParams->try_emplace(console, console, HookParam{}, CONSOLE);
if(createconsole)
if(createconsole){
OnCreate(GetThread(console));
Host::AddConsoleOutput(ProjectHomePage);
}
//CreatePipe();
@ -219,6 +221,7 @@ namespace Host
OnConsole=console;
HookInsert=hookinsert;
embedcallback=embed;
Host::AddConsoleOutput(ProjectHomePage);
}
constexpr auto PROCESS_INJECT_ACCESS=(
PROCESS_CREATE_THREAD |