Click to See Complete Forum and Search --> : Anyone used InetIsOffline API successfully before?


Lothar Haensler
February 25th, 2000, 08:37 AM
according to MSDN the InetIsOffline function should reside in shell32.dll, version 4.00.
I do own version 4.00 of shell32.dll on WinNT4.0.
Still, I get a "can't find DLL entry point..." if I try to use it in my VB program and DUMPBIN/EXPORTS doesn't list the function.

What am I doing wrong?
(I do know Internetgetconnectedstate API...)

Aaron Young
February 25th, 2000, 12:21 PM
Phew, this was a tough one to Trackdown, I had to try nearly all my Search Engines to find any info on this fella, anyways, it turns out, it's not in the Shell32 DLL, (thank you very much MicroSoftİ), it's actually in the URL DLL, here's a working Declaration:

private Declare Function InetIsOffline Lib "URL" (byval dwFlags as Long) as Long



If you're interested in where I found out, there's a list of all API functions and their associated DLL's at this URL:
http://www.geocities.com/Tokyo/Towers/6162/win32/fn2lib/all.txt

Aaron Young
Analyst Programmer
ajyoung@pressenter.com
aarony@redwingsoftware.com
Certified AllExperts Expert: http://www.allexperts.com/displayExpert.asp?Expert=11884

Lothar Haensler
February 28th, 2000, 02:02 AM
Thanks for answering.
Someone should tell Microsoft to change their documentation.

That link you mentioned is kind of cool.
It's not that useful, though, because depending on the versions of the dll the contents of that list might be very different.
It inspired me to create my own list of exported entries:
create an NT command file and enter
for %%i in ("c:\winnt\system32\*.dll") do dumpbin /EXPORTS %%i