简体   繁体   中英

Hook a specific function in a dll

Is it possible to hook all the processes, or find out when a specific function in a dll is called? I want to be able to catch this call and inject my own code / deny access to this function. How can I do this without looping through all the processes and hook each one of them? Is it possible to do so without altering system files? (I'm planning on doing this on an android device and I don't want to require a root)

Simply write a dll with the same ABI.

The idea is to make you dll call the equivalent functions from the original dll, eventually adding a special process, or do nothing or report an unauthorized call if necessary.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM