WinFormでCの関数をDllImportして使うのがたぶん一番簡単

webviewでUI作ってUIのイベントハンドラからCの関数を呼ぶ方法もある
https://github.com/webview/webview