How to get a memory pointer in the core process