public static uint QuerySessionCount() { SessInfo[] siArray = new SessInfo[2]; uint cx = pcsQuerySessionList(0, siArray); return(cx); }
public static int QueryActiveSessionCount() { SessInfo[] siArray = new SessInfo[2]; uint cx = pcsQuerySessionList(0, siArray); cx = pcsQuerySessionList(2, siArray); if (cx >= 1) { char ssnId = siArray[0].ShortName; } return((int)cx); }
/// <summary> /// return the output of pcsQuerySessionList as an IEnumerable of SessInfo. /// </summary> /// <returns></returns> public static IEnumerable <SessInfo> QuerySessionList() { var sessCx = QuerySessionCount(); SessInfo[] siArray = new SessInfo[sessCx]; uint rv = pcsQuerySessionList(sessCx, siArray); foreach (var sessInfo in siArray) { yield return(sessInfo); } yield break; }
public MasterSessionItem(SessInfo Info) : this(Info.SessId) { }