Most runtimes (including the CLR) provide a way to integrate with C-based libraries through a thunking layer.