2024-02-14 18:38:52 +00:00
|
|
|
#include <windows.h>
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
|
|
|
#include "sivahook/touch.h"
|
|
|
|
#include "hooklib/createprocess.h"
|
|
|
|
|
2024-02-17 07:29:52 +00:00
|
|
|
#include "util/dprintf.h"
|
|
|
|
|
2024-02-14 18:38:52 +00:00
|
|
|
HRESULT touch_hook_init(const struct touch_config *cfg)
|
|
|
|
{
|
|
|
|
if (!cfg->enable) {
|
|
|
|
return S_FALSE;
|
|
|
|
}
|
|
|
|
|
2024-02-17 07:29:52 +00:00
|
|
|
dprintf("Touch: hook init\n");
|
|
|
|
return createprocess_push_hook_w(L"\"NanoTS_PTool_win8.exe\"", L"inject_32.exe -d -k sivahook_32.dll ", NULL, false);
|
2024-02-14 18:38:52 +00:00
|
|
|
}
|