473,800 Members | 2,696 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

dial up networking from a Windows Service

Our .net application needs to open a dial up network connection to reach the
internet and send and receive emails (we use a third party component for the
email).

Using wininet.ddl and rasapi32.dll I can list the connections and connect to
a specific named connection.
If the application is launched as a windows forms application it is able to
get the connections defined in the user profile.

This application has to move inside a Windows service application, where the
application runs in the context of the account assigned to the service,
typically local system.
If I assign a specific user account to the Windows service the application
has access to the same profile information (and to the dial up connections)
and everything works as expected but it's my last choice.

Is there a way to copy the dial up connection settings from a user profile
to the local system account profile?
Are there other ways to interact with dial up networking from a Windows
service?

thanks,
Davide Bedin
Jul 21 '05 #1
0 1521

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

Similar topics

1
2320
by: ch | last post by:
Hi, I am trying to write a VB program to detect the Dial Up Networking window in WinXP. For instance, everytime when i launch my Internet Explorer, the default MS windows Dial Up Networking will pop up and start dialling to my ISP. I wanted to write a program to detect that "Dial up needs" and then launch my own dialup application, instead of using the Windows default DUN.
0
1549
by: BrendonJ | last post by:
Hi. Could some one please point me in the right direction about vb.net support for Dial-up connectors? I could not find any documentation. Using VB.NET I would like to search the computer for existing Dial-up connectors, then select one of them and use it to establish a connection to the internet, transfer files to an ftp site and finally close the Dial- up connector. I think I can do the ftp part but I need a way to manage the internet...
0
1520
by: BrendonJ | last post by:
Hi. Could some one please point me in the right direction about vb.net support for Dial-up connectors? I could not find any documentation. Using VB.NET I would like to search the computer for existing Dial-up connectors, then select one of them and use it to establish a connection to the internet, transfer files to an ftp site and finally close the Dial- up connector. I think I can do the ftp part but I need a way to manage the internet...
1
10176
by: Hugh McLaughlin | last post by:
Hello Everyone and thanks for your help in advance. I am writing an application in Vb.Net that queries a SQL Server database and then builds a text file for submission to a vendor. However, the vendor requires that the file be sent via dial-up modem. This is where I am having the problem as I haven't got a clue as to how to do this or where to start. Could someone shed some light on this or point me to a tutorial? Any help would be...
0
1300
by: sleepyant | last post by:
Hi, how can I check the internet connection and pop-up a Dial-Up Networking dialog when there isn't any? I've tried the following: Dim myReq As HttpWebRequest Try myReq = WebRequest.Create("http://www.yahoo.com/") myReq.GetResponse() Catch ex As Exception
46
2142
by: H.A. Sujith | last post by:
Why doesn't the standard library provide (at least basic) networking facilities using TCP/IP ?
3
1423
by: mirek | last post by:
Hello, My ASP.NET application must have additional functionality which isn't typical for ordinary web use. It is: - connecting to the other server using specified protocol (an option to establish dialup connection also) - scheduling some task to be done at the time (e.g. retrieve info from other servers) I've got already this "network interface module" implemented for normal
0
342
by: Davide Bedin | last post by:
Our .net application needs to open a dial up network connection to reach the internet and send and receive emails (we use a third party component for the email). Using wininet.ddl and rasapi32.dll I can list the connections and connect to a specific named connection. If the application is launched as a windows forms application it is able to get the connections defined in the user profile. This application has to move inside a Windows...
2
1006
by: =?Utf-8?B?UGF1bA==?= | last post by:
Hi, I have a C++ unmanaged application that controls a MODEM using the Remote Access Service (RAS) APIs to manipulate PhoneBook entires and control the dial-up connection. I would like to something similar from a C# application. Do you know if there are .net classes available that provide functionality similar to the RAS API, such as RasEnumEntries(), RasDial() etc. ? thank you, Paul
0
9551
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10279
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10255
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9092
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7582
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6815
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5473
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5607
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4150
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.