Microsoft Developer Network > Forums Home > Smart Device Development Forums > Windows Mobile Development > Answering "The Internet" / "Work" dialog progamatically
Ask a questionAsk a question
 

QuestionAnswering "The Internet" / "Work" dialog progamatically

  • Friday, October 17, 2008 8:49 PMtballard Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Scenario: We have PPC2003 devices (WiFi and Ethernet in cradle) and WM5 (Wifi, Bluetooth, Phone/GPRS, and Ethernet in cradle).

     

    The first time you cradle a device and get an IP Address, it pops up a notification asking you to pick does this connect to "The Internet" or "Work".  Until you answer this question, network access is blocked.

     

    We disable the Start Menu (but leave it visible) and control what user does through our main menu.  As part of provisiong device, we need to answer this question after every cold boot.

     

    By taking snapshots of registry before and after, on WM5, I figured out that if I set the registry key:

    HKLM\ControlPanel\WiFi\Ethernet\, DestID="{A1182988-0D73-439E-87AD-2A5B369F808B}"

     

    It will automatically answer the question as "Work" when I drop in the cradle and network will auto start.

     

    Problem is, on PPC2003, I cannot set such registry key.  Is there something I can do with CM_Mappings in provisioning XML to set this setting without modifying the registry?  I see some information in reference for CM_Mappings, and others, but can't quite figure it out.

     

    What do I set on PPC2003 to answer "The Internet" or "Work"?  I see lots of examples for specific mappings for specific addresses, but I want this for all addresses.

     

    Thanks!