windows-10

.NET 4.8 TLS 1.3 Issue on Windows 10

核能气质少年 提交于 2021-02-15 07:53:06
问题 A .NET 4.8 application running on Windows 10 (version 10.0.19041) with enabled TLS 1.3 using the registry as per how to enable TLS 1.3 in windows 10 However running the following code: try { System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls13; using (var client = new WebClient()) { var img = client.DownloadData("URL of an image - Only TLS 1.3 at client side - removed for privacy purposes"); MemoryStream ms = new MemoryStream(img); Image i = Image.FromStream(ms); i

How can I load the same icon as used by MessageBox on Windows 10?

倾然丶 夕夏残阳落幕 提交于 2021-02-15 05:10:15
问题 On Windows 10 calling LoadIcon asking for the standard icon IDI_INFORMATION yields this icon: On the other hand, calling MessageBox passing IDI_INFORMATION produces a dialog that uses this icon: How can I obtain the second icon, if the obvious call to LoadIcon does not do so? 回答1: This feels like a bug in user32.dll but Windows 8 has the same issue so I guess Microsoft doesn't care. You can get the flat icon used by MessageBox by calling SHGetStockIconInfo: SHSTOCKICONINFO sii; sii.cbSize =

How can I load the same icon as used by MessageBox on Windows 10?

两盒软妹~` 提交于 2021-02-15 05:09:55
问题 On Windows 10 calling LoadIcon asking for the standard icon IDI_INFORMATION yields this icon: On the other hand, calling MessageBox passing IDI_INFORMATION produces a dialog that uses this icon: How can I obtain the second icon, if the obvious call to LoadIcon does not do so? 回答1: This feels like a bug in user32.dll but Windows 8 has the same issue so I guess Microsoft doesn't care. You can get the flat icon used by MessageBox by calling SHGetStockIconInfo: SHSTOCKICONINFO sii; sii.cbSize =

How can I load the same icon as used by MessageBox on Windows 10?

落爺英雄遲暮 提交于 2021-02-15 05:07:44
问题 On Windows 10 calling LoadIcon asking for the standard icon IDI_INFORMATION yields this icon: On the other hand, calling MessageBox passing IDI_INFORMATION produces a dialog that uses this icon: How can I obtain the second icon, if the obvious call to LoadIcon does not do so? 回答1: This feels like a bug in user32.dll but Windows 8 has the same issue so I guess Microsoft doesn't care. You can get the flat icon used by MessageBox by calling SHGetStockIconInfo: SHSTOCKICONINFO sii; sii.cbSize =

How can I load the same icon as used by MessageBox on Windows 10?

梦想的初衷 提交于 2021-02-15 05:06:34
问题 On Windows 10 calling LoadIcon asking for the standard icon IDI_INFORMATION yields this icon: On the other hand, calling MessageBox passing IDI_INFORMATION produces a dialog that uses this icon: How can I obtain the second icon, if the obvious call to LoadIcon does not do so? 回答1: This feels like a bug in user32.dll but Windows 8 has the same issue so I guess Microsoft doesn't care. You can get the flat icon used by MessageBox by calling SHGetStockIconInfo: SHSTOCKICONINFO sii; sii.cbSize =

Setting DPI Awareness of a new Process to display tiff

隐身守侯 提交于 2021-02-11 14:37:48
问题 I want to display a tiff file using photoviewer. private void StartProcessWithoutShell(string filePath) { string path = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles); photoViewer.StartInfo = new ProcessStartInfo("rundll32.exe", String.Format("\"{0}{1}\", ImageView_Fullscreen {2}", Environment.Is64BitOperatingSystem ? path.Replace(" (x86)", "") : path, @"\Windows Photo Viewer\PhotoViewer.dll", filePath)); photoViewer.StartInfo.UseShellExecute = false; photoViewer.Start(); }

Setting DPI Awareness of a new Process to display tiff

回眸只為那壹抹淺笑 提交于 2021-02-11 14:35:36
问题 I want to display a tiff file using photoviewer. private void StartProcessWithoutShell(string filePath) { string path = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles); photoViewer.StartInfo = new ProcessStartInfo("rundll32.exe", String.Format("\"{0}{1}\", ImageView_Fullscreen {2}", Environment.Is64BitOperatingSystem ? path.Replace(" (x86)", "") : path, @"\Windows Photo Viewer\PhotoViewer.dll", filePath)); photoViewer.StartInfo.UseShellExecute = false; photoViewer.Start(); }

Symfony 5 and sudo commad using Windows 10

孤街醉人 提交于 2021-02-11 12:19:07
问题 I am following Fabien Potencier's book "Symfony 5: The Fast Track". I develop the project using Windows 10 pro 64 bit. The author of the book, however, works with Linux. In chapter 27 the following command should be executed, which works on Linux, but not on Windows 10: sudo API_ENDPOINT = 'symfony var: export SYMFONY_DEFAULT_ROUTE_URL --dir = ..' yarn encore dev I have installed Sudo for Windows, but the problem is not solved. How do I run this command on Windws 10? 来源: https://stackoverflow

Controlling the image quality on the Java application side

给你一囗甜甜゛ 提交于 2021-02-11 07:01:52
问题 I posted a question here asking about what to do about a blurry picture in a java application. What i discovered is that my windows scaling was causing the blurriness. Now i have a greater issue. I want the quality of the image and application to be controlled via the application, without having to change any windows settings if at all possible. Instead of changing the scaling back to 100% there was another windows suggestion from here that said to change the compatibility settings of the

Pyinstaller failed to execute script on Windows

流过昼夜 提交于 2021-02-11 05:30:18
问题 exe file not opening in windows 10. I saw this comment below on stacks and tried it 'Try to open command prompt and drag exe into it and press enter, that way you will catch the error (if there is any) and then update your question, more info == more help.' This was what i got Traceback (most recent call last): File "balls.py", line 12, in pygame.error: Couldn't open screenshotlogo2.png [9536] Failed to execute script balls 来源: https://stackoverflow.com/questions/61482903/pyinstaller-failed