473,788 Members | 2,807 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 1520

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

Similar topics

1
2318
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
10175
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
1299
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
9656
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10373
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10177
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...
0
8995
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
7519
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
6750
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
5538
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4074
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
3
2897
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.