0
I have the following code that works correctly:
typedef void(__fastcall* _PackEndFunc)(int Buffer);
_PackEndFunc PackEndFunc;
uintptr_t moduleBase = (uintptr_t)GetModuleHandle(L"processo.exe");
PackEndFunc = (_PackEndFunc)(moduleBase + 0x8AA46C);
while (true)
{
if (GetAsyncKeyState(VK_NUMPAD3) & 1)
{
PackEndFunc(0x0A);
}
Sleep(10);
}
I’d like to, instead of PackEndFunc(0x0A)
, pass a set of bytes or integers instead of a single value.
For example:
05 00 C1 01 18 E5 87
I am new to programming in c++ and as much as I study manipulation of arrays I cannot get this code right.