PC Review


Reply
Thread Tools Rate Thread

Detecting which network adapter is in use

 
 
Rob Peppin
Guest
Posts: n/a
 
      2nd Oct 2003
I have been developing a messaging system for PocketPC
2003 using c# and I would like to be able to detect what
kind of conncetion I have got (LAN, WIFI, GPRS etc..) so
that I don't send too much data down a costly connection
(GPRS can get costly!!!)

Does anyone know of anyway of getting this kind of
information from the device as I don't think the compact
framework supports this kind of request.

The only way I can do this at the moment is to examine the
transfer rates I am getting and based on this I can infer
what kind of conncetion I have, but it isn't nice!


 
Reply With Quote
 
 
 
 
Rick Winscot
Guest
Posts: n/a
 
      2nd Oct 2003
Rob,

Take a look at Hood Canal Systems Net Perceptor ---
http://www.hoodcanalsystems.com/products.htm
It's inexpensive and sounds like what you are looking for. (look towards the
bottom of the page)

Rick Winscot
rickly@zyche dot com


"Rob Peppin" <(E-Mail Removed)> wrote in message
news:0f0701c388f5$4dc6dff0$(E-Mail Removed)...
> I have been developing a messaging system for PocketPC
> 2003 using c# and I would like to be able to detect what
> kind of conncetion I have got (LAN, WIFI, GPRS etc..) so
> that I don't send too much data down a costly connection
> (GPRS can get costly!!!)
>
> Does anyone know of anyway of getting this kind of
> information from the device as I don't think the compact
> framework supports this kind of request.
>
> The only way I can do this at the moment is to examine the
> transfer rates I am getting and based on this I can infer
> what kind of conncetion I have, but it isn't nice!
>
>



 
Reply With Quote
 
Paul G. Tobey [eMVP]
Guest
Posts: n/a
 
      2nd Oct 2003
Well, you can use GetAdaptersInfo() to get the adapter types. I think
you're going to have to hook into NDISUIO to actually tell when a given
adapter is 'connected'. Neither of those things is directly supported in
..NET CF and the NDISUIO thing will pretty much require C, although I guess
you could poll from C#/VB.NET. Some of this has been covered from the C
perspective in the Windows CE newsgroups, so you might check there for more
details:

http://groups.google.com/groups?hl=e...blic.windowsce

One other thing to note is that you can't tell from any piece of information
which 'adapter is in use'. The routing code in the TCP/IP stack determines
that on its own and it might switch from one to another to another behind
your back, unless you establish static routes.

Paul T.

"Rob Peppin" <(E-Mail Removed)> wrote in message
news:0f0701c388f5$4dc6dff0$(E-Mail Removed)...
> I have been developing a messaging system for PocketPC
> 2003 using c# and I would like to be able to detect what
> kind of conncetion I have got (LAN, WIFI, GPRS etc..) so
> that I don't send too much data down a costly connection
> (GPRS can get costly!!!)
>
> Does anyone know of anyway of getting this kind of
> information from the device as I don't think the compact
> framework supports this kind of request.
>
> The only way I can do this at the moment is to examine the
> transfer rates I am getting and based on this I can infer
> what kind of conncetion I have, but it isn't nice!
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Detecting Network Adapter Speed and Duplex Settings Pinky Windows Networking 0 11th Jun 2005 09:08 PM
Laptop not detecting Nework adapter, etc. Ron Windows Networking 0 26th Dec 2003 03:49 PM
Double-clicking network adapter's icon does not display adapter status. Bloke at the pennine puddle (Replace n.a.v.d with Windows XP Networking 0 25th Dec 2003 11:51 PM
Double-clicking network adapter's icon does not display adapter status. Bloke at the pennine puddle (Replace n.a.v.d with Windows XP General 0 25th Dec 2003 11:49 PM
Add Hardware - Select Network Adapter - Adapter List is empty ?? herman_swartz@yahoo.com Windows XP General 0 15th Dec 2003 07:30 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:49 AM.