예제 #1
0
        /// <summary>
        /// retrieve a message from an event
        /// </summary>
        /// <param name="Event">Reference to Event</param>
        /// <returns>The message for an event</returns>
        public string EventText(ref USrvEvent Event)
        {
            StringBuilder message = new StringBuilder(MsgTextLen);

            Srv_EventText(ref Event, message, MsgTextLen);
            return(message.ToString());
        }
예제 #2
0
        /// <summary>
        /// Extracts an event (if available) from the Events queue.
        /// </summary>
        /// <param name="Event">Reference of User event</param>
        /// <returns>0: No errors. Otherwise see errorcodes</returns>
        public bool PickEvent(ref USrvEvent Event)
        {
            Int32 evtReady = new Int32();

            if (Srv_PickEvent(server, ref Event, ref evtReady) == 0)
            {
                return(evtReady != 0);
            }
            else
            {
                return(false);
            }
        }
예제 #3
0
 private static extern int Srv_EventText(ref USrvEvent Event, StringBuilder evtMsg, int textSize);
예제 #4
0
 private static extern int Srv_PickEvent(IntPtr server, ref USrvEvent Event, ref Int32 evtReady);
예제 #5
0
 public string EventText(ref USrvEvent Event)
 {
     StringBuilder Message = new StringBuilder(MsgTextLen);
     Srv_EventText(ref Event, Message, MsgTextLen);
     return Message.ToString();
 }
예제 #6
0
 protected static extern int Srv_EventText(ref USrvEvent Event, StringBuilder EvtMsg, int TextSize);
예제 #7
0
 public bool PickEvent(ref USrvEvent Event)
 {
     Int32 EvtReady = new Int32();
     if (Srv_PickEvent(Server, ref Event, ref EvtReady) == 0)
         return EvtReady != 0;
     else
         return false;
 }
예제 #8
0
 protected static extern int Srv_PickEvent(IntPtr Server, ref USrvEvent Event, ref Int32 EvtReady);