Software hook setting method and device

2016 
The invention discloses a software hook setting method and device. The method comprises the following steps: a hook API (application programming interface)2 is established when a target API is triggered; the entry address of the API is replaced with the entry address of an original target API; the entry address of the original target API is replaced with the entry address of a hook API1; the hook API1 is executed; the hook API1 is released automatically along with release of the target API. According to the scheme, the entry address of the target API is replaced, so that the preset processing program API1 can be run when the target API is triggered, and the problem of direct running of the target API in a hook restoring process is solved, that is, the problem of gap occurrence during restoring is solved.
    • Correction
    • Source
    • Cite
    • Save
    • Machine Reading By IdeaReader
    0
    References
    0
    Citations
    NaN
    KQI
    []