How to set "MY WORK NETWORK"??

M

Mike Nicol

Hi all

I'm writing an app in VS.NET 2005 for the Pocket PC 2003. I've gotten all
to work nicely, and it's humming along great.

I've even got it to re-install .netCF2 and the app on cold boot. One
problem though.

When it cold boots, the default under
Start->Settings->Connections->Connections->Advanced->Select Networks, is "My
ISP" for "Programs that automatically connect ot the Internet should connect
using:".

My app uses a HTTPWebRequest to query our Intranet for some information.
While the setting is "My ISP", I can't get a connection, but if I set it to
"My Work Network", it works like a charm.

Now for the Question:
How do I set this setting programatically? I don't want the user to have to
fiddle with the System Settings once it is deployed. This device will be
used by a lot of low-level staff and should be instantly repairable (i.e.
cold-boot to restore to operational state) if for some reason something goes
wrong.

Any responses would be great, I've spent quite a bit of time online looking
for answers, but nothing quite right has come up.

Thanks
Mike
 
D

Darren Beckley

Try sending the following XML by P/Invoking the DMProcessConfigXML() native
API:

<wap-provisioningdoc>
<characteristic type="CM_ProxyEntries">
<!-- Remove default proxy entry linking "My ISP" to "The Internet" -->
<nocharacteristic type="HTTP-{ADB0B001-10B5-3F39-27C6-9742E785FCD4}" />

<!-- Create null proxy (i.e. direct link) between "My Work Network" and
"The Internet" -->
<characteristic type="HTTP-{18AD9FBD-F716-ACB6-FD8A-1965DB95B814}">
<parm name="Type" value="0"/>
<parm name="SrcId" value="{18AD9FBD-F716-ACB6-FD8A-1965DB95B814}"/>
<parm name="DestId" value="{436EF144-B4FB-4863-A041-8F905A62C572}"/>
<parm name="Proxy" value="new-inet:1159"/>
<parm name="Enable" value="1"/>
</characteristic>
</characteristic>
</wap-provisioningdoc>

More info on Configuration Manager can be found here:

http://msdn.microsoft.com/library/en-us/guide_ppc/html/ppc_conconfigurationmanagerozup.asp

Hope that helps,
Darren
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top