public InternetServiceProfile(int ServiceProfileID, InternetServiceType type, InternetConnectionProfile profile) { this.pDelFlag = POPDeleteFlage.unknown; this.alphabet = Alphabet.unknown; this.pCmd = POPCommand.unknown; this.profileID = ServiceProfileID; this.srvType = type; this.conId = profile.profileID; user = passwd = tcpPort = address = hcContent = hcContLen = hcUsrAgent = hcProp = hcRedir = hcAuth = smFrom = smRcpt = smCC = smSubj = smHdr = smAuth = pNumber = pLength = tcpMR = tcpOT = secOpt = ""; }
public static string GetInternetServiceString(InternetServiceType Type) { switch (Type) { case InternetServiceType.Ftp: return "Ftp"; case InternetServiceType.Http: return "Http"; case InternetServiceType.Pop3: return "Pop3"; case InternetServiceType.Smtp: return "Smtp"; case InternetServiceType.Socket: return "Socket"; case InternetServiceType.Transparent: return "Transparent"; default: return "none"; } }
public static extern IntPtr InternetConnect(IntPtr hInternet, string lpstrServerName, int nServerPort, string lpszUserName, string lpszPassword, InternetServiceType dwService, uint dwFlags, ref uint dwContext);