From 279f353f9bfe7902d3503f58ef0cec45118c93b5 Mon Sep 17 00:00:00 2001 From: Rutherther Date: Sat, 18 Feb 2023 16:57:45 +0100 Subject: [PATCH] docs(injector): update Inject documentation --- src/Inject/NosSmooth.Injector/NosInjector.cs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/Inject/NosSmooth.Injector/NosInjector.cs b/src/Inject/NosSmooth.Injector/NosInjector.cs index a222038..ee39154 100644 --- a/src/Inject/NosSmooth.Injector/NosInjector.cs +++ b/src/Inject/NosSmooth.Injector/NosInjector.cs @@ -42,6 +42,14 @@ public class NosInjector /// /// /// The dll must also have .runtimeconfig.json present next to the dll. + /// + /// The method you want to call has to be marked with UnmanagedCallersOnly, + /// has to be the default convention, return an integer (that will be returned out of this method) + /// and accept one argument. That argument should accept a pointer do byte array containing data from . + /// One possibility is to use . + /// + /// Parsing data is up to the user, no format is specified, the array length is not passed to the + /// injected dll, so you better know the size prior to calling or store the size in the beginning of the array. /// /// The id of the process to inject to. /// The absolute path to the dll to inject. @@ -67,6 +75,14 @@ public class NosInjector /// /// /// The dll must also have .runtimeconfig.json present next to the dll. + /// + /// The method you want to call has to be marked with UnmanagedCallersOnly, + /// has to be the default convention, return an integer (that will be returned out of this method) + /// and accept one argument. That argument should accept a pointer do byte array containing data from . + /// One possibility is to use . + /// + /// Parsing data is up to the user, no format is specified, the array length is not passed to the + /// injected dll, so you better know the size prior to calling or store the size in the beginning of the array. /// /// The process to inject to. /// The absolute path to the dll to inject. -- 2.48.1