fix win7 getNtSendInput
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
#include "mouse_key_win7.h"
|
||||
#include "protect_filter.h"
|
||||
fnNtUserSendInput_win7 origon_NtUserSendInput_win7;
|
||||
|
||||
namespace mouse_key_win7
|
||||
{
|
||||
__int64 __fastcall hkNtUserSendInput(unsigned int a1, unsigned __int64 a2, int a3)
|
||||
{
|
||||
auto pid = PsGetCurrentProcessId();
|
||||
|
||||
if(protect_filter::is_white_pid(HandleToLong(pid), NULL))
|
||||
return origon_NtUserSendInput_win7(a1, a2, a3);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user