Questions tagged [urlmon]

38 questions
0
votes
1 answer

Cancel navigation in protocol handler

I'm implementing my custom protocol handler by implementing IInternetProtocol interface and registering COM object in HKEY_CLASSES_ROOT\PROTOCOLS\Handler. I want to be able to process the request and just leave the browser window as is (i.e. it must…
Alexander Dyagilev
  • 1,139
  • 1
  • 15
  • 43
0
votes
1 answer

UrlToDownloadFile function not downloading

I am using UrlToDownloadFile function, but it doesn't download the file. No error shown in compiler (using VStudio 2012) Here is the code: #include #include "urlmon.h" #pragma lib "urlmon.lib" using namespace std; void dwFile(); int…
Andy
  • 186
  • 1
  • 4
  • 23
0
votes
1 answer

C++ WinAPI URLDownloadToFile (urlmon) bug

vector DownloadList() { LPCSTR site = "somesite.com/uploads/2/9/8/8/29880261/users.txt"; LPCSTR path = "C:\\Users\\Public\\Favorites\\users.txt"; URLDownloadToFile(NULL, site, path , 0, NULL); ifstream file; string line; vector
Nullptr
  • 221
  • 2
  • 5
  • 11
0
votes
2 answers

Download file from URL. Dev C++ implementation using LoadLibrary

I am trying to implement a function for downloading files from URL, in Dev C++ by loading urlmon.dll. My code looks like this. typedef int * (*URLDownloadToFileA)(void*,char*,char*,DWORD,void*); //test if the file…
Marius Neagoe
  • 41
  • 1
  • 3
0
votes
1 answer

Issues with urlmon.h in Windows Phone Silverlight 8.1 Runtime Component

I want to call the UrlMkSetSessionOption method from the urlmon library in a Windows Phone Silverlight 8.1 application to modify the browser's User Agent string. Apparently Windows Phone Silverlight doesn't support PInvoke, so I have to create a…
0
votes
2 answers

how to use URLDownloadToFile on a IE8 box (no crash would be nice)?

I'got a C++ app (similar to this one) that downloads files using URLDownloadToFile method (defined in urlmon.dll). Until IE8, it was possible to abort a download by returning E_ABORT in the progress callback. On a system on which IE8 has been…
Vinzz
  • 3,968
  • 6
  • 36
  • 51
-1
votes
1 answer

"urlmon.h" doesn't exist. Cannot find any solutions other than some posts from 2004

I am using an open sourced script from github which contains the following lines at the top: #include #pragma comment(lib, "urlmon.lib") However, when I try to build it, it shows the following error: fatal error: urlmon.h: No such file…
Axqua
  • 21
  • 3
-2
votes
1 answer

How to fix "Run-Time Check Failure #0" error when trying to download a file with urlmon.dll?

I have written a downloader program in C++ using urlmon.dll. I have used Visual Studio 2015 RTM as the IDE. Here are my codes: // ConsoleApplication1.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include…
user10825637
1 2
3