在写ras拨号的时把256写错为20,这个糊涂问题居然花了我半天时间, const int RAS_MaxEntryName = 256; const int RAS_MaxPhoneNumber = 128; const int RAS_MaxCallbackNumber = 128; const int UNLEN = 256; const int PWLEN = 256; const int DNLEN = 15; [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)] public struct RASDIALPARAMS 相关文章: