VC + + Plant vs Zombies Chinese version of the implementation code _c language

Source: Internet
Author: User

This article describes the VC + + Plant war zombie Chinese version of the implementation code. Share to everyone for your reference. The specific analysis is as follows:

This is a very simple auxiliary tool, the key is game data analysis, achieved two functions, infinite sunlight and no cooling. Special attention, if the use of VS2008 compiled, debugging is normal, but after the function will be invalid, this is because of openprocess permissions, the need to mention the right, under the VC6 is normal.

void Czhiwudlg::onbnclickedbutton1 ()
{
 //Infinite Sunshine code
 HWND hjubing;
 DWORD LID;
 DWORD base = 0x006a9ec0;
 DWORD Cunfang;
 Hjubing= Findwindowa (NULL, "Plant vs Zombies Chinese version");
 GetWindowThreadProcessId (hjubing,&lid);
 HANDLE hopen = OpenProcess (process_all_access,0,lid);
 ReadProcessMemory (Hopen, (LPVOID) base,&cunfang,4,null);
 Base = Cunfang + 0x768;
 ReadProcessMemory (Hopen, (LPVOID) base,&cunfang,4,null);
 Base = Cunfang + 0x5560;
 cunfang=9999;
 WriteProcessMemory (Hopen, (LPVOID) base,&cunfang,4,null);
}
void Czhiwudlg::onbnclickedbutton2 ()
{
//No Cooling time code
 DWORD LID;
 DWORD base = 0x00488e73;
 HWND hjubing = Findwindowa (NULL, "Plant vs. Zombie Chinese version");
 GetWindowThreadProcessId (Hjubing,&lid); Gets the process id
 HANDLE hopen = OpenProcess (process_all_access,null,lid);
 Open process get all operation permissions 
 DWORD Pianyi = 0x80;
 WriteProcessMemory (Hopen, (LPVOID) base,&pianyi,1,null);

}

I hope this article describes the VC + + program to help.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.