Flutter Desktop Windows: How to call native code via Method Channel. (Make api calls in <windows.h> header file)

The title says it all. There is nearly no documentation on flutter’s website that shows how to invoke a method in windows native code via a method channel. But I found an issue on the flutter’s github that said its possible but there was no code there!

I couldn’t find any example projects on github that use windows native code also.

Source: Windows Questions C++