473,386 Members | 1,693 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Determine RAS device Com port

Hello Group,

I am using the RASAPI to dial-to the internet using a GPRS modem using
C#.

Is it possible before dialling to retreive information about the COM
port that the modem is connected for the RAS entry in the phone book.

What I mean is I have two entires, Entry A and Entry B using devices
on COM 1 and COM 2 respectively.

Can I get information back from the RAS phone book entry about what
COM port my Entry A and Entry B are connected to? When I use the
Windows RAS Dialer I can see which modem the entry is going to use.
Thanks

Mark
Nov 16 '05 #1
1 4554
Before dialing one can use RasSetEntryProperties to set the DeviceName &
Type. RasEntry->szDeviceName

Mapping between the device name and port name Should be known before.

After dialing u can verify which entry is using what port by using
RasGetEntryProperties and verifying the RasEntry -> szDeviceName. Here also
mapping between device name and port should be known before (Anyway this is
static once you configure the devices properly)
--
- Manjari
This posting is provided "AS IS" with no warranties, and confers no rights.
"Mark Smith" <sh******@yahoo.com.au> wrote in message
news:8b**************************@posting.google.c om...
Hello Group,

I am using the RASAPI to dial-to the internet using a GPRS modem using
C#.

Is it possible before dialling to retreive information about the COM
port that the modem is connected for the RAS entry in the phone book.

What I mean is I have two entires, Entry A and Entry B using devices
on COM 1 and COM 2 respectively.

Can I get information back from the RAS phone book entry about what
COM port my Entry A and Entry B are connected to? When I use the
Windows RAS Dialer I can see which modem the entry is going to use.
Thanks

Mark

Nov 16 '05 #2

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

Similar topics

2
by: Luk Vloemans | last post by:
Hey, I'm writing a program which will run on a PDA equipped with a GPS link. I'm trying to read data from the GPS-device, but so far I've been out of luck.. (OS: Windows CE - coding language:...
5
by: Logan McKinley | last post by:
I was wondering if there is any way for me to read the device manager in my C# program? I have a program that crashes when some third party hardware is not installed or is set to the wrong port...
0
by: Mark Smith | last post by:
Hello Group, I am using the RASAPI to dial-to the internet using a GPRS modem using C#. Is it possible before dialling to retreive information about the COM port that the modem is connected...
0
by: Mark Smith | last post by:
Hello Group, I am using the RASAPI to dial-to the internet using a GPRS modem using C#. Is it possible before dialling to retreive information about the COM port that the modem is connected...
3
by: Steve | last post by:
I want to check if a USB device is availble on a system. Is this possible? I see it in the Device Manager, so I think it must be possible "somehow" :)
1
by: sujith[arsse] | last post by:
Hi all, I'm new to this community,so i think i shall introduce myself first, I'm a developer in VC++ 6.0 for past few years, Now my mission to post this thread is how can i find "Is any...
0
by: rahulpasupuleti | last post by:
Hi.can someone help me in writing code for communicating with a USB device.For a serial port we have predefined functions for opening the port,reading to the port,writing to the port etc.I want to do...
4
by: JDS | last post by:
I have an application that interfaces with a USB device using the .Net serial port. The code works fine, displaying live data on the screen; that is until the USB lead is pulled out from the PC...
4
by: saintme | last post by:
Hello all, I have a USB modem stick and a PoE network device. I want to connect the device to the Internet using the USB stick. The device has no other interfaces, so I must use its RJ-45 port. I...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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,...
0
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...

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.