110,534
社区成员
发帖
与我相关
我的任务
分享
[DllImport("kernel32.dll")]
[PreserveSigAttribute()]
public static extern int CopyMemory(object Destination, object Source, Int32 Length);
[DllImportAttribute("rasapi32.dll")]
public static extern Int32 RasSetCredentials(string lpszPhonebook, string lpszEntry, ref RASCREDENTIALS lpRasEntry, int fClearCredentials);
还需要用到的API[DllImportAttribute("rasapi32.dll")]
[PreserveSigAttribute()]
public static extern Int32 RasSetEntryProperties(string lpszPhonebook, string lpszEntry, ref RASENTRY lpRasEntry, Int32 dwEntryInfoSize, Int32 lpbDeviceInfo, Int32 dwDeviceInfoSize);
相关API 关键 RASENTRY结构 lz试试