Hi @Yang Yang ,
We can use P/Invoke to consume a native library, you could try to check this doc - Use C/C++ libraries with Xamarin, then try to adjust to implement a version of MAUI. Please feel free to let me know if you have any other issues.
Best Regards,
Wenyan Zhang
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.