Leaked source code of windows server 2003
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
<HTML> <HEAD> #include "header.inc" #include "debug_js.inc" #include "constants.inc"
<TITLE>Remote Assistance Settings</TITLE> <meta id="meta1" name="meta1" http-equiv="MSThemeCompatible" content="Yes"> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <LINK id="UI_StyleSheet1" REL="stylesheet" TYPE="text/css" HREF="hcp://system/css/shared.css"> <LINK id="UI_StyleSheet" name="UI_StyleSheet" REL="stylesheet" TYPE="text/css" HREF="../../Css/rc.css">
<Script id="LocalScript" name="LocalScript" Language="javascript"> var vArgs=window.dialogArguments; var L_ERRACCESSDENIED_Text = "Directly launching this page is not allowed. "; var L_RCCTL_Text = "Remote Assistance failed. Please try again. ";
// // VOIP Messages // var L_ERRVOIP2_Text = c_szVoiceError;
/* Function : OnApply() Description : Gets called when the Apply button is pressed. This apply the settings based upon the options selected */ function OnApply() { TraceFunctEnter("OnApply"); try { // We need to change the Voice Compression if a radio button setting has been modified if ((optStd.checked == true) && (vArgs[0].g_VoipBandwidth == 1)) { // Caught a change from high to low, set the SamplingRate property vArgs[0].g_Helpee_oSAFIntercomServer.SamplingRate = 1;
// Change state variable from 1 to 0 vArgs[0].g_VoipBandwidth = 0;
// Send a message to client (helper) vArgs[0].Helpee_SendControlCommand( c_szVoipBandwidthToLow);
} else if ((optHigh.checked == true) && (vArgs[0].g_VoipBandwidth == 0)) { // Caught a change from low to high, set the SamplingRate property vArgs[0].g_Helpee_oSAFIntercomServer.SamplingRate = 2;
// Change state variable from 0 to 1 vArgs[0].g_VoipBandwidth = 1;
// Send a message to client (helper) vArgs[0].Helpee_SendControlCommand( c_szVoipBandwidthToHigh); } } catch(error) { vArgs[0].FatalError(L_RCCTL_Text,error); } TraceFunctLeave(); }
/* Function : Tuning() Description : Gets called when the Audio Tuning Wizard button is pressed. */ function Tuning() { TraceFunctEnter("Tuning"); lRet = 0;
try { vArgs[0].g_Helpee_oSAFIntercomServer.RunSetupWizard(); // Send a message to the client that the SetupWizard succeeded vArgs[0].Helpee_SendControlCommand( c_szVoipWizardGood);
// set me to good vArgs[0].g_stateVoipMe = 1;
// Now we make the check to see if we can enable voice. // If me and you are good < 2 then enable if ( (vArgs[0].g_stateVoipMe < 2) && (vArgs[0].g_stateVoipYou < 2) ) {
// Enable voice #ifndef _HSSTOOLBAR vArgs[0].frames.idFrameTools.btnVoice.disabled = false; vArgs[0].frames.idFrameTools.txtVoice.disabled = false; #else vArgs[0].frames.idFrameTools.EnableButton( "btnVoice" );
#endif vArgs[0].g_bStartEnabled = true; vArgs[0].g_bVoIPEnabled = true; }
} catch(error) { vArgs[0].g_bVoIPEnabled = false; vArgs[0].DisplayMessage(L_ERRVOIP2_Text);
// set me to bad vArgs[0].g_stateVoipMe = 2;
// gray voice button #ifndef _HSSTOOLBAR vArgs[0].frames.idFrameTools.btnVoice.disabled = true; vArgs[0].frames.idFrameTools.txtVoice.disabled = true; #else vArgs[0].frames.idFrameTools.DisableButton( "btnVoice" ); #endif
//vArgs[0].g_bStartEnabled = false; // Send a message to the client that the SetupWizard failed vArgs[0].Helpee_SendControlCommand( c_szVoipWizardBad); } TraceFunctLeave(); }
/* Function : SystemOptions() Description : */ function SystemOptions() { TraceFunctEnter("SystemOptions"); try { //TODO: code goes in here. } catch(error) { vArgs[0].FatalError("",error); } TraceFunctLeave(); } /* Function : OnLoad() Description : Gets called on the load of the page. Options are initialised based upon the settings recorded. */ function OnLoad() { TraceFunctEnter("OnLoad"); try { // Show current compression setting through the 'rdAS' radio button if (vArgs[0].g_VoipBandwidth == 0) { optStd.checked = true; } else { optHigh.checked = true; }
// Disable the Audio wizard button if we are on a voice session if ((vArgs[0].g_bVoipConnected == true)) { btnATW.disabled = true; } else btnATW.disabled = false;
} catch(error) { idBody.style.visibility = "hidden"; alert( L_ERRACCESSDENIED_Text ); return; } TraceFunctLeave(); } </Script> </HEAD> <BODY id="idBody" name="idBody" onLoad="OnLoad();" class="sys-inlineform-bgcolor1"> <Table name="idMainTable" id="idMainTable" cellspacing="0" cellpadding="0" border=0 class="MaxLayout"> <TR> <TD class="padding6 padding3"> <Table id="T1" name="T1" border=0 cellpadding="0" cellspacing="0" class="MaxLayout"> <TR> <TD class="padding5 valigntop"> <Fieldset id="F0T1" name="F0T1" class="padding3 padding4 padding6 padding7"> <Legend id="L0F0T1" name="L0F0T1" class="sys-font-body sys-color-body"> Audio </Legend> <Table cellpadding=0 cellspacing=0 border=0 name="idContainer" name="idContainer" class="MaxLayout"> <TR> <TD class="height5"> </TD> </TR> <TR> <TD> <Input type="radio" name="rdAS" id="optStd" checked> <Label id="LA0F0T1" name="LA0F0T1" For="optStd" class="sys-font-body sys-color-body"> Standard quality </Label> </TD> </TR> <TR> <TD> <Input type="radio" name="rdAS" id="optHigh"> <Label id="LA1F0T1" name="LA1F0T1" For="optHigh" class="sys-font-body sys-color-body"> High quality (requires a high-speed Internet connection) </Label> </TD> </TR> <TR> <TD class="height15"> </TD> </TR> <TR> <TD id="idbtn" name="idbtn" align="right" class="padding2"> <BUTTON name="btnATW" id="btnATW" onClick="Tuning();" class="sys-font-body sys-color-body" accesskey="T"> Audio <U>T</U>uning Wizard .... </BUTTON> </TD> </TR> </Table> </Fieldset> </TD> </TR> <TR> <TD class="height8"> </TD> </TR> <TR> <TD id="TD1" name="TD1" align="right"> <Button id="btnOK" name="btnOK" Onclick="OnApply();window.close();" class="styBtnWidth sys-font-body sys-color-body" accesskey="O"><U>O</U>K</Button> <Span id="idblankSpace1" name="idblankSpace1" class="width8"></Span> <Button id="btnCancel" name="btnCancel" OnClick="window.close();" class="styBtnWidth sys-font-body sys-color-body" accesskey="C"><U>C</U>ancel</Button> <Span id="idblankSpace2" name="idblankSpace2" class="width8"></Span> <Button id="btnApply" name="btnApply" Onclick="OnApply();" class="styBtnWidth sys-font-body sys-color-body" accesskey="A"><U>A</U>pply</Button> </TD> </TR> </Table> </TD> </TR> </Table> </BODY> </HTML>
|