CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 1999
    Posts
    3,332

    Anyone used InetIsOffline API successfully before?

    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...)


  2. #2
    Join Date
    Sep 1999
    Location
    Red Wing, MN USA
    Posts
    312

    Re: Anyone used InetIsOffline API successfully before?

    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/Tower...fn2lib/all.txt

    Aaron Young
    Analyst Programmer
    [email protected]
    [email protected]
    Certified AllExperts Expert: http://www.allexperts.com/displayExp...p?Expert=11884
    Aaron Young
    Senior Programmer Analyst (Red Wing Software)
    Certified AllExperts Expert

  3. #3
    Join Date
    May 1999
    Posts
    3,332

    Re: Anyone used InetIsOffline API successfully before?

    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


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured