Method CreateNativeDetour
CreateNativeDetour(nint, nint, int, nint)
Creates a PlatformTriple.NativeDetour. This is basically identical to CreateSimpleDetour(nint, nint, int, nint),
except that it generates an alternate entrypoint for
from
.public PlatformTriple.NativeDetour CreateNativeDetour(nint from, nint to, int detourMaxSize = -1, nint fromRw = 0)
Parameters
from
nint- The address to detour.
to
nint- The target of the detour.
detourMaxSize
int- The maximum size available for the detour.
fromRw
nint- The address to write the detour to, if that is different from
from
. Otherwise, the default value of default should be passed. Refer to OnMethodCompiledCallback for more information.
Returns
- PlatformTriple.NativeDetour
- A PlatformTriple.NativeDetour instance managing the generated detour.