Process mute, pause, and acceleration

Source: Internet
Author: User

The above three functions need to be implemented in the work. At first, we thought of directly suspending the process. As a result, we found that after the process was suspended, the message loop also crashed. therefore, this cannot be achieved. I reversed a DLL in a game box and found the secret as follows:

Mute: Several system functions are hook in XP: midistreamout and waveoutwrite. directsoundcreate has to be hooked on the Internet. Test results show that the function can be used to mute in XP. the immdeviceenumerator interface can be used to mute Windows 7.

Acceleration: hook the following system functions: gettickcount, timegettime, and queryperformancecounter. You can calculate the speed in the function after the hook.

Pause: After the above acceleration is implemented, it is easy to pause. If you set the speed to 0, it will be paused...

This is how it works,CodeNo, it's relatively simple, and there's no technical content. Let's make full use of our kids shoes!

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.