private void EnumerateCallback(IntPtr device, IntPtr context) { try { var mGuid = Guid.Empty; DirectOutputClass.GetDeviceType(device, ref mGuid); App.Log.Info($"Adding new DirectOutput device {device} of type: {mGuid.ToString()}"); //Called initially when enumerating FIPs. if (!IsFipDevice(device)) { return; } var fipPanel = new FipPanel(device); _fipPanels.Add(fipPanel); fipPanel.Initalize(); } catch (Exception ex) { App.Log.Error(ex); } }
private bool IsFipDevice(IntPtr device) { var mGuid = Guid.Empty; DirectOutputClass.GetDeviceType(device, ref mGuid); return(string.Compare(mGuid.ToString(), "3E083CD8-6A37-4A58-80A8-3D6A2C07513E", true, CultureInfo.InvariantCulture) == 0); }