start injeccted
This commit is contained in:
parent
d56a4196b2
commit
0f44a0c6f8
@ -1,4 +1,5 @@
|
|||||||
#include "common.h"
|
#include "common.h"
|
||||||
|
#include "defs.h"
|
||||||
#include "resource.h"
|
#include "resource.h"
|
||||||
|
|
||||||
wchar_t buffer[1000] = {};
|
wchar_t buffer[1000] = {};
|
||||||
@ -6,6 +7,8 @@ std::array<int, 10> vars = {};
|
|||||||
|
|
||||||
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE, LPSTR, int)
|
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE, LPSTR, int)
|
||||||
{
|
{
|
||||||
|
LoadLibraryW(ITH_DLL);
|
||||||
|
|
||||||
ShowWindow(CreateDialogParamW(hInstance, MAKEINTRESOURCEW(IDD_DIALOG1), NULL, [](HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) -> INT_PTR
|
ShowWindow(CreateDialogParamW(hInstance, MAKEINTRESOURCEW(IDD_DIALOG1), NULL, [](HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) -> INT_PTR
|
||||||
{
|
{
|
||||||
switch (uMsg)
|
switch (uMsg)
|
||||||
@ -26,7 +29,7 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE, LPSTR, int)
|
|||||||
{
|
{
|
||||||
GetWindowTextW((HWND)lParam, buffer, std::size(buffer));
|
GetWindowTextW((HWND)lParam, buffer, std::size(buffer));
|
||||||
try { vars.at(LOWORD(wParam) - IDC_EDIT1) = std::stoi(buffer); }
|
try { vars.at(LOWORD(wParam) - IDC_EDIT1) = std::stoi(buffer); }
|
||||||
catch (std::invalid_argument&) {}
|
catch (...) {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user