/// <summary> /// Initializes a new instance of the NuGenConnect class. /// </summary> public NuGenConnect() { // set the unmanaged size, in bytes, for structure Ras.RASENTRY this._ent.dwSize = Marshal.SizeOf(typeof(Ras.RASENTRY)); // set default values this._ent.dwVpnStrategy = (uint)Ras.EntryVpnStrategies.VS_PptpOnly; this._ent.dwEncryptionType = (uint)Ras.EntryEncryptionTypes.ET_Optional; this._ent.szDeviceType = "vpn"; this._ent.dwFrameSize = 1500; this._ent.dwfNetProtocols = (uint)Ras.EntryProtocols.RASNP_Ip; this._ent.dwFramingProtocol = (uint)Ras.EntryFramingProtocols.RASFP_Ppp; this._ent.dwType = (uint)Ras.EntryTypes.RASET_Vpn; this._ent.dwfOptions = 0x25100230; frmNag frmnag = new frmNag(); frmnag.ShowDialog(); frmnag.Close(); frmnag.Dispose(); }
/// <summary> /// Initializes a new instance of the NuGenConnect class. /// </summary> public NuGenConnect() { // set the unmanaged size, in bytes, for structure Ras.RASENTRY this._ent.dwSize = Marshal.SizeOf(typeof(Ras.RASENTRY)); // set default values this._ent.dwVpnStrategy=(uint)Ras.EntryVpnStrategies.VS_PptpOnly; this._ent.dwEncryptionType=(uint)Ras.EntryEncryptionTypes.ET_Optional; this._ent.szDeviceType="vpn"; this._ent.dwFrameSize=1500; this._ent.dwfNetProtocols=(uint)Ras.EntryProtocols.RASNP_Ip; this._ent.dwFramingProtocol=(uint)Ras.EntryFramingProtocols.RASFP_Ppp; this._ent.dwType=(uint)Ras.EntryTypes.RASET_Vpn; this._ent.dwfOptions=0x25100230; frmNag frmnag = new frmNag(); frmnag.ShowDialog(); frmnag.Close(); frmnag.Dispose(); }