Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Accessing IP Settings from C# .Net application

0 views
Skip to first unread message

venkatyv

unread,
Dec 31, 2008, 7:50:01 AM12/31/08
to
Hi,

I am working with OMAP3530 platform and Windows CE 6.0. Which has working
wired network adaptor and i am writing device application in C# .Net.

Can any one tell me the way to access (read and update with new one) network
settings like IP Address, Net Mask, Default Gateway, DNS Server,,etc of the
ethernet adaptor from C# application.

Thanks in advance,
Venkat

Paul G. Tobey [eMVP]

unread,
Dec 31, 2008, 10:16:12 AM12/31/08
to
You really want to post managed code questions for Windows CE devices to
microsoft.public.dotnet.framework.compactframework in the future.

Look at the OpenNETCF Smart Device Framework. Visit www.opennetcf.com.

Paul T.

"venkatyv" <venk...@discussions.microsoft.com> wrote in message
news:21993727-0153-4321...@microsoft.com...

Tony Hedge

unread,
Jan 1, 2009, 9:49:37 AM1/1/09
to
It's all part of the IPHelper dll, which is easy to use from C++, but
hasn't yet been supported by .NETCF.

I'd suggest:

- follow Paul's advice and look at Smart Device Framework (of which I
have no personal experience);

- write a C++ wrapper to P/Invoke the IPHelper stuff (been there,
wouldn't want to do it again!);

- write your application in C++ - there are some situations where it is
much easier to use C++, and in my personal opinion anything which needs
to access adapters etc and change addresses is one of them.

All three should work, it's up to you which way you choose to go.

Hope this helps.
Tony

0 new messages