As of today UrlDownloadToFile API for downloading from MS OneDrive does not work anymore. Instead of the requested file a HTML page is downloaded telling to update your browser.
This was known for not updated versions of Windows 8, but as of today this happens too in Up to date Windows 10 and Windows 11, resulting in non working of even crashing applications since the HTML file will get the name of the requested file and you cannot USE an HTML file.
This was known for not updated versions of Windows 8, but as of today this happens too in Up to date Windows 10 and Windows 11, resulting in non working of even crashing applications since the HTML file will get the name of the requested file and you cannot USE an HTML file.