IDS peak ICV v1.3.0
Loading...
Searching...
No Matches
Library.cs
Go to the documentation of this file.
1using System.Runtime.InteropServices;
2
302namespace IDSImaging.Peak.ICV;
303
304internal static class Global
305{
306 public const string LibraryName = "ids_peak_icv";
307 public const CallingConvention CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl;
308}
309
315public class Library
316{
340 public static void Init()
341 {
342 DllHelper.ExecuteAndMapReturnCodes(CInterface.peak_icv_Init);
343 }
344
383 public static void Exit()
384 {
385 DllHelper.ExecuteAndMapReturnCodes(CInterface.peak_icv_Exit);
386 }
387
388 private static class CInterface
389 {
390 [DllImport(Global.LibraryName, CallingConvention = Global.CallingConvention)]
391 public static extern Backend.Types.peak_icv_status peak_icv_Init();
392
393 [DllImport(Global.LibraryName, CallingConvention = Global.CallingConvention)]
394 public static extern Backend.Types.peak_icv_status peak_icv_Exit();
395 }
396}
static void Init()
Initializes the IDS peak ICV library.
Definition Library.cs:340
static void Exit()
Deinitializes the IDS peak ICV library.
Definition Library.cs:383