Native struct ptr creation