Hook Dx and draw FPS

Source: Internet
Author: User

It's not something new, it's just a bit of fun.

First, hook DX device, and then hook internal functions. Here, it is just the end mark function endscene of hook d3drender. Internally record FPS, and then create a d3dxfont object to show that FPS is drawn at the specified position on the screen.

Hook to d3d or the old method. Set the hook and set yourselfCodeInject to the remote process address space and hook the API in the DLL code.

Here we modify the IAT, and we can also use a method similar to deours (directly modify the function Execution Code, usually a jump command, as described in the previous post ). Then you can do something you want to do.

Here I modify IAT. Note that this method is not allProgramBecause DLL cannot be dynamically loaded.

 

 

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.