Esempio n. 1
0
 public static extern Constants.FT_STATUS FT_ListDevices(ref int numDevs, IntPtr doNotUse, Internal.Constants.FT_LISTDEVICES flags);
Esempio n. 2
0
        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();
        }