使用封送
using System.Runtime.InteropServices; 
class Api
{
    [DllImport("路径/XXXX.dll" ,CharSet=CharSet.Auto)]
    public static 函数名 (参数)
}调整封送类型很操蛋,灵活又没有唯一的标准,恶心死了.
说白了,就是把头文件用上面的方法重写一遍.