19 lines
415 B
C++
19 lines
415 B
C++
#include "mouse_key_win10.h"
|
|
#include "protect_filter.h"
|
|
|
|
fnNtUserSendInput_win10 origon_NtUserSendInput_win10;
|
|
|
|
|
|
namespace mouse_key_win10
|
|
{
|
|
__int64 __fastcall hkNtUserSendInput(unsigned int a1, volatile void* a2, int a3, int a4)
|
|
{
|
|
auto pid = PsGetCurrentProcessId();
|
|
if (protect_filter::is_white_pid(HandleToLong(pid), NULL))
|
|
return origon_NtUserSendInput_win10(a1, a2, a3, a4);
|
|
|
|
|
|
return NULL;
|
|
}
|
|
|
|
} |