473,508 Members | 2,382 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

InternetAutodialHangup (wininet.dll)

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
Nov 20 '05 #1
4 2271
"connull" <an*******@discussions.microsoft.com> schrieb
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 Long


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

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

Nov 20 '05 #2
What is the correct declaration for VB.Net? The InternetAutodial works a 100% with the same declaration!
Nov 20 '05 #3
Hi Connul,

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

Cor
Nov 20 '05 #4
"connull" <an*******@discussions.microsoft.com> schrieb
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...data_types.asp
--
Armin

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

Nov 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
9377
by: Dan | last post by:
I have an app that uses the wininet.dll APIs to get web pages and to post to web forms. My problem is that some of my users systems will literally wait an hour before an Internet call to a site...
0
2239
by: Gerry Abbott | last post by:
Hi All, Im trying to get som ftp functionality into my application, and have some code I sourced from this NG. I'm trying to tailor it for my needs, but need a better understanding of whats...
1
4460
by: Sean Barnes | last post by:
Hello all, I am having a bit a problem with the InternetDial function in the wininet.dll. The problem is that despite passing in a null terminated string as the lpszConnectoid param to the...
3
4057
by: gnanib | last post by:
I am writing an FTP client in C# with the help of the functions available in wininet.dll. I was able to get everything to work except the use of the "FtpCommand" function. Basically I am trying...
1
4179
by: Java Writer via .NET 247 | last post by:
Hey Mon!, This runs and gives me a 'iLen' of 4 but returns empty string. I am guessing this is the programmatic way to check Internet Explorer. {Tools}-{Internet Options)-(Settings...). Even...
3
3703
by: Rich | last post by:
Greetings, I have a VB6 app that uses API's from wininet.dll for FTP- ing textfiles to and from Mainframe computers and doing directory searches on the mainframe from a windows desktop...
0
1995
by: Sjaakie Helderhorst | last post by:
Hi all, I'm trying to create a class which handles FTP. Knowing little of classes I'm having some trouble making things work. Also having trouble finding the meaning of some error-codes. The code...
0
3295
by: Nishini | last post by:
I am using "FtpFindFirstFile" function of wininet.dll in my application. I had the Declare statement for this function in my code but when I executed my applicaiton, it gave me an error saying...
0
1880
by: Nishini | last post by:
I am using "FtpFindFirstFile" function of wininet.dll in my application. I had the Declare statement for this function in my code but when I executed my applicaiton, it gave me an error saying...
0
7115
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7377
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7036
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7489
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5624
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5047
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3191
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
762
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
414
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.