From ff1f1c4244eb5b79c3eef5d6ea1f97fa272886a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Boh=C3=A1=C4=8Dek?= Date: Thu, 28 May 2020 00:32:09 +0200 Subject: [PATCH] Update readme examples --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ca16533..8b8f0a2 100644 --- a/README.md +++ b/README.md @@ -20,5 +20,9 @@ This is a simple C# dll injector. It can inject dll into remote process and exec - To inject dll use `Injector` class, the `Inject` method will return `InjectedModule` with `ExecuteFunction` method ``` InjectedModule injectedModule = Injector.Inject("RemoteProcess", "MyDynamicLibrary.dll"); -injectedModule.ExecuteFunction("Main"); -``` \ No newline at end of file +FunctionResult result = injectedModule.ExecuteFunction("Main"); + +int integerResult = result.To(); // Primitive types are casted from IntPtr, Reference types are Read from pointer +``` + +- See examples for more \ No newline at end of file -- 2.48.1