home *** CD-ROM | disk | FTP | other *** search
-
- // reg keys
- var REG_INTERNET_SETTINGS = "Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings";
- var REG_TCIP_PARAM = "SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters";
-
- // reg values
- var REG_MAXCONNECTIONSPERSERVER = 8;
- var REG_MAXCONNECTIONSPER1_0SERVER = 4;
- var REG_GLOBALMAXTPWINDOWSIZE = 64240;
- var REG_TCP1323OPTS = 3;
- var REG_TCPWINDOWSIZE = 64240;
-
- function ssSetRegDword(root, key, name, value)
- {
- var REG_DWORD = 4;
- window.external.SetRegValueByType(root, key, name, REG_DWORD, value);
- }
-
- function ssInstallBBandRegSettings()
- {
- switch (ssGetOS())
- {
- // Windows 2k, NT and XP
- case "2000":
- case "xp":
-
- ssSetRegDword("HKCU", REG_INTERNET_SETTINGS, "MaxConnectionsPerServer", REG_MAXCONNECTIONSPERSERVER);
- ssSetRegDword("HKCU", REG_INTERNET_SETTINGS, "MaxConnectionsPer1_0Server", REG_MAXCONNECTIONSPER1_0SERVER);
- ssSetRegDword("HKLM", REG_TCIP_PARAM, "GlobalMaxTcpWindowSize", REG_GLOBALMAXTPWINDOWSIZE);
- ssSetRegDword("HKLM", REG_TCIP_PARAM, "Tcp1323Opts", REG_TCP1323OPTS);
- ssSetRegDword("HKLM", REG_TCIP_PARAM, "TcpWindowSize", REG_TCPWINDOWSIZE);
-
- break;
-
- // Windows 95, 98, ME, NT
- default :
- //alert("not implemented yet");
- }
- }
-