473,322 Members | 1,703 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,322 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 4549
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: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.