public static extern Constants.FT_STATUS FT_ListDevices(ref int numDevs, IntPtr doNotUse, Internal.Constants.FT_LISTDEVICES flags);
public static Constants.FT_STATUS FT_ListDevices(ref int numDevs, IntPtr doNotUse, Internal.Constants.FT_LISTDEVICES flags) { switch (Environment.OSVersion.Platform) { case PlatformID.MacOSX: { break; } case PlatformID.Unix: { return(Linux.Methods.FT_ListDevices(ref numDevs, doNotUse, flags)); } case PlatformID.Win32NT: case PlatformID.Win32S: case PlatformID.Win32Windows: case PlatformID.WinCE: { return(Windows.Methods.FT_ListDevices(ref numDevs, doNotUse, flags)); } case PlatformID.Xbox: { break; } } throw new PlatformNotSupportedException(); }