[Tutorial] C ++ makes a QQ plug-in

Source: Internet
Author: User

First, read a piece of code...

 

 

Int main () <br/>{< br/> hwnd window handle = find1_wex (null, null, T ("qqtangwinclass "), T ("qqtang 4.1 beta1 build1"); <br/> If (window handle) <br/>{< br/> ulong process ID; <br/> If (getwindowthreadprocessid (window handle, & process ID) <br/>{< br/> handle hprocess = OpenProcess (process_all_access, false, process ID ); <br/> If (hprocess! = Invalid_handle_value) <br/>{< br/> int to write value =-1903475851; // code through the wall <br/> If (writeprocessmemory (hprocess, (lpvoid) 4956433/* wall-crossing offset */, & to write value, sizeof (to write value), null )) <br/>{< br/> // OK <br/>}< br/> else <br/>{< br/> // err <br/>} <br/> closehandle (hprocess ); <br/>}< br/> else <br/>{< br/> // err <br/>}< br/> else <br/ >{< br/> // err <br/>}< br/> else <br/>{< br/> // err <br/>} <br/> return 0; <br/>}

 

 

Obviously, the above Code does not work!

Is there any other way?

Yes, driver injection!

To be continued...

Related Article

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.