InternetAutodialHangup (wininet.dll)

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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

Private Declare Function InternetAutodialHangup Lib "wininet.dll"
(ByVal dwReserved As Long) As Lon

Public Sub HangUp(
'To disconnect an automatically dialled connectio
InternetAutodialHangup(0
End Su
 
What is the correct declaration for VB.Net? The InternetAutodial works a 100% with the same declaration!
 
connull said:
What is the correct declaration for VB.Net? The InternetAutodial
works a 100% with the same declaration!


Private Declare Function InternetAutodialHangup Lib "wininet.dll" _
(ByVal dwReserved As Integer) As Boolean


Hint: Put the cursor on InternetAutodialHangup 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-us/winprog/winprog/windows_data_types.asp


--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html
 
Back
Top