1、傳入單字節ANSI字符
[DllImport("hostIO", CharSet = CharSet.Ansi, CallingConvention = CallingConvention.Cdecl)]
public static extern int initHost([MarshalAs(UnmanagedType.LPStr)] string host);
2、傳入雙字節Unicode字符
[DllImport("hostIO", CharSet = CharSet.Ansi, CallingConvention = CallingConvention.Cdecl)]
public static extern int initHost([MarshalAs(UnmanagedType.LPWStr)] string host);