public Source(Simulator simulator, SimulationSettings simulationSettings) { var sourceSettings = new SourceSettings { }; sourceSettings.flags = simulationSettings.flags; var status = API.iplSourceCreate(simulator.Get(), ref sourceSettings, out mSource); if (status != Error.Success) { throw new Exception(string.Format("Unable to create source for simulation. [{0}]", status)); } }
public static extern Error iplSourceCreate(IntPtr simulator, ref SourceSettings settings, out IntPtr source);