Heya,
I have two questions I'm not able to figure out since hours , can't count my Wow crashes...
I'm injecting a C++ libary which communicates via named pipes with my main application.
1) My main application sends the "BaseAddress" of an object to the library
From the BaseAddress I'm figuring out the function pointer to the interact function, which looks like this:
Code:
typedef void (__thiscall *tInteract) (void);
tInteract oInteract;
void Interact(DWORD baseAddress)
{
DWORD_PTR unitInteractVMT = *reinterpret_cast<DWORD_PTR*>(*reinterpret_cast<DWORD_PTR*>(baseAddress) + (38 *4));
oInteract= reinterpret_cast<tInteract>(unitInteractVMT );
oInteract();
}
But it seems to crash my Wow with a read error.
2) Targeting:
My main application sends a string containing the guid to my library, now how do I convert std::string to __int64 or _WowGuid?
Tried to search the internet, but I can't find a solution for this problem.
Would be really great to receive some hints.