Skip to content

Is it safe to detach/attach multiple times? #253

@R3uan3

Description

@R3uan3

Upon consecutive calls to 'DetourDetach' and 'DetourAttach' there is any chance to cause any kind of crash or error, into the hooked process? or is it considerable safe?

I'm asking in a scenario where you detach with the intention to pause the hooks, and then reenable them when needed.
or should i create any kind of if else in each API hooked?

if (!hooksEnabled) 
    return 'the original function'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions