Glatrix
Glatrix
CC#
Created by Glatrix on 11/14/2022 in #help
❔ Importing functions by RVA instead of Name
🙂
34 replies
CC#
Created by Glatrix on 11/14/2022 in #help
❔ Importing functions by RVA instead of Name
okay then thanks!!
34 replies
CC#
Created by Glatrix on 11/14/2022 in #help
❔ Importing functions by RVA instead of Name
like void DoThing(int pA, int pB);
34 replies
CC#
Created by Glatrix on 11/14/2022 in #help
❔ Importing functions by RVA instead of Name
[Resolvable("DoThing(int, int)")]
public static extern void DoThing(int pA, int pB);
[Resolvable("DoThing(int, int)")]
public static extern void DoThing(int pA, int pB);
34 replies
CC#
Created by Glatrix on 11/14/2022 in #help
❔ Importing functions by RVA instead of Name
is the delegate not already defined here somehow?
34 replies
CC#
Created by Glatrix on 11/14/2022 in #help
❔ Importing functions by RVA instead of Name
and it can be set to a delegate?
34 replies
CC#
Created by Glatrix on 11/14/2022 in #help
❔ Importing functions by RVA instead of Name
interesting
34 replies
CC#
Created by Glatrix on 11/14/2022 in #help
❔ Importing functions by RVA instead of Name
oh I didnt know that
34 replies
CC#
Created by Glatrix on 11/14/2022 in #help
❔ Importing functions by RVA instead of Name
would public static extern void DoThing(int pA, int pB); be considered a field?
34 replies
CC#
Created by Glatrix on 11/14/2022 in #help
❔ Importing functions by RVA instead of Name
when I cast it as a func pointer it works, im just looking to simplify the process
34 replies
CC#
Created by Glatrix on 11/14/2022 in #help
❔ Importing functions by RVA instead of Name
which is the address of the function in memory
34 replies
CC#
Created by Glatrix on 11/14/2022 in #help
❔ Importing functions by RVA instead of Name
IntPtr
34 replies
CC#
Created by Glatrix on 11/14/2022 in #help
❔ Importing functions by RVA instead of Name
I want to put the
ResolveFunc("DoThing(int, int)");
ResolveFunc("DoThing(int, int)");
functionality inside the attribute somehow, and get rid of the annoyingly long cast if possible
34 replies
CC#
Created by Glatrix on 11/14/2022 in #help
❔ Importing functions by RVA instead of Name
instead of
var DoThing = (delegate* unmanaged[Cdecl]<int,int,void>)ResolveFunc("DoThing(int, int)");
var DoThing = (delegate* unmanaged[Cdecl]<int,int,void>)ResolveFunc("DoThing(int, int)");
34 replies
CC#
Created by Glatrix on 11/14/2022 in #help
❔ Importing functions by RVA instead of Name
if I have
[Resolvable("DoThing(int, int)")]
public static extern void DoThing(int pA, int pB);
[Resolvable("DoThing(int, int)")]
public static extern void DoThing(int pA, int pB);
and I call it, it should make sure it has the pointer by calling ResolveFunc with the value ive passed in, and then call it with the args pA and pB
34 replies
CC#
Created by Glatrix on 11/14/2022 in #help
❔ Importing functions by RVA instead of Name
thats all
34 replies
CC#
Created by Glatrix on 11/14/2022 in #help
❔ Importing functions by RVA instead of Name
I'm working with function pointers, and I need to make an attribute which shortens the process
34 replies
CC#
Created by Glatrix on 11/14/2022 in #help
❔ Importing functions by RVA instead of Name
what will reflection even do for me in this case?
34 replies
CC#
Created by Glatrix on 11/14/2022 in #help
❔ Importing functions by RVA instead of Name
right, but where? is there a way to override invoke in the attribute class?
34 replies