예제 #1
0
        public static bool DriverInstalled()
        {
            if (!Shared.isWindows())
            {
                return(true);
            }

            var proc = new Process
            {
                StartInfo = new ProcessStartInfo
                {
                    FileName               = "pnputil.exe",
                    Arguments              = "-e",
                    UseShellExecute        = false,
                    RedirectStandardOutput = true,
                    CreateNoWindow         = true
                }
            };

            proc.Start();
            return(proc.StandardOutput.ReadToEnd().Contains("USB\\VID_1F3A&PID_EFE8"));
        }