Esempio n. 1
0
        void AddOrbisTargets()
        {
            try
            {
                ORTMAPI orbisAPI = new ORTMAPI();
                orbisAPI.CheckCompatibility((uint)eCompatibleVersion.BuildVersion);

                foreach (ITarget tgt in (Array)orbisAPI.Targets)
                {
                    if (tgt.PowerStatus == ePowerStatus.POWER_STATUS_ON)
                    {
                        string name = (tgt.Name != "") ? tgt.Name : tgt.HostName;
                        AddTarget(ETargetType.Orbis, name, tgt.HostName, StatoscopeCryEnginePort);
                    }
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex);
            }
        }
Esempio n. 2
0
 public static void Init()
 {
     TMAPI.CheckCompatibility((uint)eCompatibleVersion.BuildVersion);
 }