As I understand it, you want to get a class object to call any methods or use variables in it.
I advise you to intercept any called method in the class and receive the first argument, which will be a pointer to the class object itself.
This is a pointer to the class object itself, with the...