internal static System.Runtime.InteropServices.ComTypes.FILETIME Convert(OpcRcw.Ae.FILETIME input) { System.Runtime.InteropServices.ComTypes.FILETIME result = default(System.Runtime.InteropServices.ComTypes.FILETIME); result.dwLowDateTime = input.dwLowDateTime; result.dwHighDateTime = input.dwHighDateTime; return(result); }
public ResultID[] AcknowledgeCondition(string acknowledgerID, string comment, EventAcknowledgement[] conditions) { lock (this) { if (base.m_server == null) { throw new NotConnectedException(); } if ((conditions == null) || (conditions.Length == 0)) { return new ResultID[0]; } int length = conditions.Length; string[] pszSource = new string[length]; string[] pszConditionName = new string[length]; OpcRcw.Ae.FILETIME[] pftActiveTime = new OpcRcw.Ae.FILETIME[length]; int[] pdwCookie = new int[length]; for (int i = 0; i < length; i++) { pszSource[i] = conditions[i].SourceName; pszConditionName[i] = conditions[i].ConditionName; pftActiveTime[i] = OpcCom.Ae.Interop.Convert(OpcCom.Interop.GetFILETIME(conditions[i].ActiveTime)); pdwCookie[i] = conditions[i].Cookie; } IntPtr zero = IntPtr.Zero; try { ((IOPCEventServer) base.m_server).AckCondition(conditions.Length, acknowledgerID, comment, pszSource, pszConditionName, pftActiveTime, pdwCookie, out zero); } catch (Exception exception) { throw OpcCom.Interop.CreateException("IOPCEventServer.AckCondition", exception); } int[] numArray2 = OpcCom.Interop.GetInt32s(ref zero, length, true); ResultID[] tidArray = new ResultID[length]; for (int j = 0; j < length; j++) { tidArray[j] = OpcCom.Ae.Interop.GetResultID(numArray2[j]); } return tidArray; } }
internal static System.Runtime.InteropServices.FILETIME Convert(OpcRcw.Ae.FILETIME input) { return(new System.Runtime.InteropServices.FILETIME { dwLowDateTime = input.dwLowDateTime, dwHighDateTime = input.dwHighDateTime }); }