Enhancing the FunctionImport invoke API enhancement