Arian Kulp's Blog
opinion, insight, and occasional code

Compact Framework Mobility

Thursday, June 08, 2006 7:02 PM
Am I missing something?!  Is it possible that the .NET Compact Framework 2.0 (CF) has fewer mobility features than the full-size framework?!  I wrote a two-part article on mobility for Coding 4 Fun (check my links along the side) and really enjoyed playing with the network and power features added from 1.1 to 2.0.  Now I'm working on Pocket PC development for a project and it looks like you still need to use P/Invoke in order to determine this information.  Think about it -- someone needs to go through the BCL list and decide which classes are worth porting to the Compact Framework.  Who passed on these?  What were they thinking?

So I'm using the Intel Mobile SDK and they provide support for network, bandwidth, power, processor, and more for the desktop and Pocket PC.  Unfortunately I can't get it to work with .NET 2.0 at this point.  The managed bridge libraries that they provide (their functions are all native DLL's with managed wrappers) build just fine, but don't seem to expose any information except for processor info.  I'll keep at it.  I must be missing something!



Feedback

# re: Compact Framework Mobility

I've read the articule being pulished on the MSDN. My question is how to power off battery? Can this be implemented by a user application?

Thanks for your article. 6/11/2006 11:14 PM | chao

# re: Compact Framework Mobility

It's probably possible, but I'd bet that it requires Win32 calls. I haven't looked into that but I'm sure it takes some work to get it to happen.

-Arian 6/12/2006 1:06 PM | Arian



Comments have been closed on this topic.