コード例 #1
0
        public void TurnOffComputerPower(string ComputerName, string PassWord)
        {
            //check that password is valid
            //if (PassWord != remoteShutDownPassword)
            //{
            //    throw new Exception("invalid password for shutdown");
            //}

            //            RemotePowerControl.shutDownRemoteComputer(ComputerName);

            RemotePowerControl.shutDownRemoteComputer(ComputerName);
        }
コード例 #2
0
 public void TurnOnComputerPower(string MacAddress, string SubNet)
 {
     RemotePowerControl.wakeUpComputer(MacAddress, SubNet);
 }