Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 649811
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T21:59:05+00:00 2026-05-13T21:59:05+00:00

In Windows Mobile, when you open Internet Explorer and type in a URL that

  • 0

In Windows Mobile, when you open Internet Explorer and type in a URL that your device can’t connect to, you are notified of this and prompted to (manually) navigate to the screen where you can actually do something about this as a user (Network Management), like so:

alt text http://www.freeimagehosting.net/uploads/d3d95e00d2.gif

However, if a .NET Compact Framework application tries to connect to a webservice and the webservice URL is not reachable, the “Cannot Connect” bubble does not appear, and instead the call to the webservice just fails. Sometimes we end up talking customers through this process on the phone:

alt text http://www.freeimagehosting.net/uploads/e74a0d4230.gif

and then they still have another 2 steps to go.

Question 1: Is it possible to programmatically control (in C#) what the two ComboBoxes on the Network Management screen are set to?

Usually fixing a customer’s connectivity problems involves fiddling with these two boxes until they can connect. The problem is that because customers can freely alter their network stuff here themselves, I often don’t know what to tell them to set it to (“it says what?” is something I say a lot). From my searches so far, it looks like DMProcessConfigXML is the way this would be done, but all I know so far is that you call this method and pass it some XML.

Question 2: Is it possible to programmatically (C#) trigger the “Cannot Connect” bubble, or better yet is it possible to programmatically make the Network Management screen appear immediately?

Presumably, if my code can’t see the webservice URL it could trigger the bubble or go directly to the screen.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T21:59:06+00:00Added an answer on May 13, 2026 at 9:59 pm

    In answer to your question 2, this code will show the connections control panel:

    Process.Start(@"\windows\ctlpnl.exe", "cplmain.cpl,19");
    

    A lot of the built in settings applets are shown through ctlpnl.exe. I got the magic number from the list here, not sure if it’ll help, because you still need to guide the user through the rest of the comms setup.

    With respect to your question 1, I have used DMProcessConfigXML and also config manager setup cabs to configure the comms settings (admittedly from c++, but looking at the api it should be straightforward to p/invoke as Shane has suggested). It was a while ago so I don’t have any examples to hand right now, but we definitely got it to make new network settings and switch those drop downs to select the new settings. I’ll see if I can dig up an example of the XML later.

    It seems there is no need for P/Invoke, ConfigurationManager.ProcessConfiguration is the managed wrapper in the Microsoft.WindowsMobile namespace that calls DMProcessConfigXML.

    I’m still looking for the right xml to send to it, most likely some combination of CM_Networks, CM_Planner and maybe some others… details are all here but the documentation is a little tricky to work out what does what, and I can’t remember as it was a long time ago 🙁

    Ok, after a little experimenting (as I didn’t find the xml) here is some xml that you can pass to ConfigurationManager.ProcessConfiguration that will change the two settings:

    <wap-provisioningdoc>
      <characteristic type="CM_ProxyEntries">
        <characteristic type="HTTP-{ADB0B001-10B5-3F39-27C6-9742E785FCD4}">
          <parm name="SrcId" value="{ADB0B001-10B5-3F39-27C6-9742E785FCD4}" options="My Work Network{18AD9FBD-F716-ACB6-FD8A-1965DB95B814}My ISP{ADB0B001-10B5-3F39-27C6-9742E785FCD4}Work{A1182988-0D73-439E-87AD-2A5B369F808B}Secure WAP Network{F28D1F74-72BE-4394-A4A7-4E296219390C}The WAP Network{7022E968-5A97-4051-BC1C-C578E2FBA5D9}The Internet{436EF144-B4FB-4863-A041-8F905A62C572}" />
          <parm name="DestId" value="{436EF144-B4FB-4863-A041-8F905A62C572}" options="My Work Network{18AD9FBD-F716-ACB6-FD8A-1965DB95B814}My ISP{ADB0B001-10B5-3F39-27C6-9742E785FCD4}Work{A1182988-0D73-439E-87AD-2A5B369F808B}Secure WAP Network{F28D1F74-72BE-4394-A4A7-4E296219390C}The WAP Network{7022E968-5A97-4051-BC1C-C578E2FBA5D9}The Internet{436EF144-B4FB-4863-A041-8F905A62C572}" />
          <parm name="Proxy" value="new-inet:1159" />
          <parm name="Override" value="" />
          <parm name="Enable" value="1" />
          <parm name="Type" value="0" />
          <parm name="Username" value="" />
          <parm name="Password" value="" />
          <parm name="ExtraInfo" value="" />
        </characteristic>
        <characteristic type="null-corp-{ADB0B001-10B5-3F39-27C6-9742E785FCD4}">
          <parm name="SrcId" value="{ADB0B001-10B5-3F39-27C6-9742E785FCD4}" options="My Work Network{18AD9FBD-F716-ACB6-FD8A-1965DB95B814}My ISP{ADB0B001-10B5-3F39-27C6-9742E785FCD4}Work{A1182988-0D73-439E-87AD-2A5B369F808B}Secure WAP Network{F28D1F74-72BE-4394-A4A7-4E296219390C}The WAP Network{7022E968-5A97-4051-BC1C-C578E2FBA5D9}The Internet{436EF144-B4FB-4863-A041-8F905A62C572}" />
          <parm name="DestId" value="{A1182988-0D73-439E-87AD-2A5B369F808B}" options="My Work Network{18AD9FBD-F716-ACB6-FD8A-1965DB95B814}My ISP{ADB0B001-10B5-3F39-27C6-9742E785FCD4}Work{A1182988-0D73-439E-87AD-2A5B369F808B}Secure WAP Network{F28D1F74-72BE-4394-A4A7-4E296219390C}The WAP Network{7022E968-5A97-4051-BC1C-C578E2FBA5D9}The Internet{436EF144-B4FB-4863-A041-8F905A62C572}" />
          <parm name="Proxy" value="" />
          <parm name="Override" value="" />
          <parm name="Enable" value="1" />
          <parm name="Type" value="0" />
          <parm name="Username" value="" />
          <parm name="Password" value="" />
          <parm name="ExtraInfo" value="" />
        </characteristic>
      </characteristic>
      </wap-provisioningdoc>
    

    This was taken from my wm 6 pro emulator, so you may need to play with the settings a little. It sets both the dropdowns to My ISP (the ADB0B001-10B5-3F39-27C6-9742E785FCD4 guid) Just change the guid in the type=”HTTP-xxxx” and type=”null-corp-xxxx” and ensure it matches in the srcId parm too.

    I called ProcessConfiguration with this xml (and metadata set to true) to get a list of all the entries that were configured, it returns them in an xml doc.

    <wap-provisioningdoc>
      <characteristic-query type="CM_Mappings" recursive="true"/>
      <characteristic-query type="CM_Planner" recursive="true"/>
      <characteristic-query type="CM_Networks" recursive="true"/>
      <characteristic-query type="CM_ProxyEntries" recursive="true"/>
      <characteristic-query type="Wi-Fi" recursive="true"/>
      <characteristic-query type="CM_PPPEntries" recursive="true"/>
      <characteristic-query type="CM_VPNEntries" recursive="true"/>
      <characteristic-query type="CM_NetEntries" recursive="true"/>
      <characteristic-query type="CM_GPRSEntries" recursive="true"/>
    </wap-provisioningdoc>
    

    You can either use that to see what the guids and settings are or look in the include files from the WM sdk as they are listed there for use with the connection manager apis.

    One caveat is that I haven’t tried to use these connections after messing with them, but the UI does change when you process the configs

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to contribute to an open-source Windows Mobile project, but it's being
Windows Mobile devices have different behaviour for suspending when the device is on battery
Windows Mobile pops up a busy wheel - a rotating colour disk - when
Windows Mobile 5 was based on CE 5.0. Windows Mobile 6 was based on
On Windows Mobile metod InternetSetOption http://msdn.microsoft.com/en-us/library/ms918381.aspx does not support option INTERNET_OPTION_HTTP_DECODING is there some
On Windows Mobile (but I guess it's the same on Windows) in a native
In Windows Mobile I am using FindFirstFile/FindNextFile to search for some files. As part
We're developing a windows mobile 6.1 application and would like to make the user
We're doing windows mobile development using the WM6 Professional emulator through visual studio 2008
i'm working on windows mobile app (c#, .net 2.0). i would like to make

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.