private bool ShowAllWindows() { if (Environment.OSVersion.Version.Major >= 6 && Environment.OSVersion.Version.Minor >= 1) { SecurityExtensions.RunOnAllDataDisplayWindows(ptr => SetWindowDisplayAffinity(ptr, 0)); return(true); } return(false); }
private bool ShowAllWindows() { if (Environment.OSVersion.Version.Major >= 6 && Environment.OSVersion.Version.Minor >= 1) { SecurityExtensions.RunOnAllDataDisplayWindows(ptr => SetWindowDisplayAffinity(ptr, 0)); return(true); } return(false); }