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!