C# Wrapper for using winapi functions via pointers