473,509 Members | 2,857 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4564
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
3077
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
34307
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
347
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
1157
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
10317
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
4329
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
1652
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
4745
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
4362
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
7234
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,...
0
7136
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
7344
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
7505
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...
1
5060
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
4730
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...
0
3216
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...
0
3203
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
441
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.