InternetAutodialHangup (wininet.dll)

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • connull

    #1

    InternetAutodialHangup (wininet.dll)

    I used the following code but it does not disconnect the automatic dialup. Can anybody help

    Private Declare Function InternetAutodia lHangup Lib "wininet.dl l"
    (ByVal dwReserved As Long) As Lon

    Public Sub HangUp(
    'To disconnect an automatically dialled connectio
    InternetAutodia lHangup(0
    End Su


  • Armin Zingler

    #2
    Re: InternetAutodia lHangup (wininet.dll)

    "connull" <anonymous@disc ussions.microso ft.com> schrieb[color=blue]
    > I used the following code but it does not disconnect the automatic
    > dialup. Can anybody help!
    >
    > Private Declare Function InternetAutodia lHangup Lib "wininet.dl l"
    > _ (ByVal dwReserved As Long) As Long[/color]

    You need the declaration for the correct language. This seems to be for VB6.


    --
    Armin

    How to quote and why:



    Comment

    • connull

      #3
      Re: InternetAutodia lHangup (wininet.dll)

      What is the correct declaration for VB.Net? The InternetAutodia l works a 100% with the same declaration!

      Comment

      • Cor Ligthert

        #4
        Re: InternetAutodia lHangup (wininet.dll)

        Hi Connul,

        Start with changing the Long's to Integer's.

        Cor


        Comment

        • Armin Zingler

          #5
          Re: InternetAutodia lHangup (wininet.dll)

          "connull" <anonymous@disc ussions.microso ft.com> schrieb[color=blue]
          > What is the correct declaration for VB.Net? The InternetAutodia l
          > works a 100% with the same declaration![/color]


          Private Declare Function InternetAutodia lHangup Lib "wininet.dl l" _
          (ByVal dwReserved As Integer) As Boolean


          Hint: Put the cursor on InternetAutodia lHangup and press <F1>. You'll get
          the description and declaration of the function. Return value is BOOL,
          argument type is DWORD. To find the corresponding type, have a look at
          http://msdn.microsoft.com/library/en...data_types.asp


          --
          Armin

          How to quote and why:



          Comment

          Working...