A C# WinApi wrapper using function pointers