InternetAutodialHangup (wininet.dll)

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
 
G

Guest

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

Armin Zingler

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top