Hi everybody.
Let's go for some Windev's code ^^.
Before reading or writing in memory, you need to find the handle of the Wow's window.
Here is the exemple :
First, create a function
Code:
PROCEDURE Enum(nHwnd est un entier, nFichier est un entier)
var est une chaƮne fixe sur 255
temp est un entier
temp1 est un entier
temp=AppelDLL32("User32", "GetWindowTextLengthA", nHwnd)
temp1=AppelDLL32("User32", "GetWindowTextA", nHwnd,&var,temp+1)
SI temp1 <> 0 ALORS
SI Gauche(var,temp3) ~= "World of Warcraft" ALORS
gnWOW_HANDLE = nHwnd
FIN
FIN
RENVOYER Vrai
And then call this function like this
Code:
API("User32", "EnumWindows", &Enum, 0)
That's all !!!
Make attention, with this code, you are going to find all the windows with world of warcraft name, like directorys ...
So make sure you have only the game runing or you need to add some codes ;.
HF