/Engine/Plugins/Runtime/OpenXR/Source/OpenXRHMD/Public/IOpenXRExtensionPlugin.h
Callbacks with returned pointer added to next chain, donotreturn pointers to structs on the stack. Remember to assign InNext to the next pointer of your struct or otherwise you may break the next chain.
virtual const void * OnCreateInstance ( class [IOpenXRHMDModule](API\Plugins\OpenXRHMD\IOpenXRHMDModule) * InModule, const void * InNext )