For unmanaged dll, we can use Platform Invoke (P/Invoke) to use it.
Please check the following documents:
Interoperating with unmanaged code
If you want to use an exe method in the current project, you can right-click the Reference of the current project and select Add regerence.
If the response is helpful, please click "Accept Answer" and upvote it.
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.