private bool SetVisibility(bool visible) {
var handle = _process.GetWindowsHandles().FirstOrDefault(h => User32.GetText(h).StartsWith("Real Head Motion for Assetto Corsa "));
if (handle != default(IntPtr)) {
User32.ShowWindow(handle, visible ? User32.WindowShowStyle.Show : User32.WindowShowStyle.Hide);
return true;
}
return false;
}