Hello! What arguments should be passed to these variables "unsigned int This" if you call the function with your hook manually? Did you manage to figure this out? Because when I override the existing function with my hook using an existing int, everything works fine
int __fastcall hkRequestAuthLogin(int thisPtr, void* edx, wchar_t* Login, wchar_t* Password, int OTP)
{
mLogin = L"qwertyui";
mPassword = L"1234567";
mOTP = -1;
return fpRequestAuthLogin(thisPtr, mLogin, mPassword, mOTP);
}
, but I still couldn’t manage to call the function externally.
void myLogin(wchar_t* Login, wchar_t* Password, int OTP)
{
mLogin = Login;
mPassword = Password;
mOTP = OTP;
fpRequestAuthLogin(1432, mLogin, mPassword, mOTP);
}
Can u help me with this?