How to handle and retrieve various data types (including pointers) within a callback.