public static EGCResults RetrieveMessage(ref UInt32 msgType, byte[] dest, ref UInt32 msgSize) { int result = DllFunctions.RetrieveMessage(ref msgType, dest, Convert.ToUInt32(dest.Length), ref msgSize); return((EGCResults)result); }