/// <summary> /// Reads the status from the server. /// </summary> public OPCSERVERSTATUS?GetStatus() { string methodName = "IOPCServer.GetStatus"; try { IOPCServer server = BeginComCall <IOPCServer>(methodName, true); IntPtr ppServerStatus; server.GetStatus(out ppServerStatus); OpcRcw.Da.OPCSERVERSTATUS pStatus = (OpcRcw.Da.OPCSERVERSTATUS)Marshal.PtrToStructure(ppServerStatus, typeof(OpcRcw.Da.OPCSERVERSTATUS)); Marshal.DestroyStructure(ppServerStatus, typeof(OpcRcw.Da.OPCSERVERSTATUS)); Marshal.FreeCoTaskMem(ppServerStatus); return(pStatus); } catch (Exception e) { ComCallError(methodName, e); return(null); } finally { EndComCall(methodName); } }
public void GetStatus(out ServerStatus p_ServerStatus) { m_IfServer.GetStatus(out p_ServerStatus); }