Hello all.
I've got a feeling that I am going to take stone throws ^^.
I use my own bot since 3 months under XP, but I have just passed under Windows 7.
Since 7, it is impossible to make the OpenProcess function work.
I use those functions :
Under XP, OpenProcess always return a non zero ValueCode://On autorise la lecture de la mémorie sur le jeu SetsPrivilege("SeDebugPrivilege", Vrai) //On crée un ID avec tous les droits qui pointe vers le handle de WoW nRes = API("user32", "GetWindowThreadProcessId", gnWOW_HANDLE, &gnWOW_ID) //On ouvre l'ID avec tous les droits gnWOW = API("kernel32", "OpenProcess", 0x1F0FFF, Faux, gnWOW_ID)
Under 7, the same function always return a 0 value :/.
I read all the MSDN lib and found this => Windows Server 2003 and Windows XP/2000: The size of the PROCESS_ALL_ACCESS flag increased on Windows Server 2008 and Windows Vista. If an application compiled for Windows Server 2008 and Windows Vista is run on Windows Server 2003 or Windows XP/2000, the PROCESS_ALL_ACCESS flag is too large and the function specifying this flag fails with ERROR_ACCESS_DENIED. To avoid this problem, specify the minimum set of access rights required for the operation. If PROCESS_ALL_ACCESS must be used, set _WIN32_WINNT to the minimum operating system targeted by your application (for example,
#define _WIN32_WINNT _WIN32_WINNT_WINXP
). For more information, see Using the Windows Headers.
Can someone give me the value of the PROCESS_ALL_ACCESS flag under 7 and Vista.
Under XP it's 0x1F0FFF but under 7 and Vista ???
Thx a lot and sorry for my Noobinesstitude ^^.
![]()