Home > Back-end >  WIN32 project using NtUserSendInput problem
WIN32 project using NtUserSendInput problem

Time:10-02

LONG __declspec (naked) NtCall (DWORD FunctionIndex, dwords ClassIndex,... )
{


The __asm
{
Push ebp
Mov ebp, esp////
Mov eax, FunctionIndex////0 x1082
Mov ecx, ClassIndex/////0 x0
Lea edx, [ebp + 0 x10]
Call the fs: xc0 [0]
Add the esp, 0 x4
Leave
Retn
}
}
# define NtUserSendInput (nInputs pInput, cbSize) NtCall (0 x1082, 0 x0, nInputs, pInput, cbSize)

Int main (int arg c, char * argv [])
{
INPUT Inputs888;
Inputs888. Type=INPUT_MOUSE;
Inputs888. Mi. DwFlags=MOUSEEVENTF_ABSOLUTE/* MOUSEEVENTF_MOVE | | */MOUSEEVENTF_LEFTDOWN | MOUSEEVENTF_LEFTUP;
NtUserSendInput (1, & amp; Inputs888, sizeof (INPUT));
NtUserSendInput (1, & amp; Inputs888, sizeof (INPUT));
}

64 used under normal operation under the 32-bit to call the fs error I side ask ace to help!!
  • Related