Hi all,

I know what the xml parameter to this function looks like, for
example:

http://groups.google.com/group/microsoft.public.pocketpc.developer/browse_thread/thread/e23604c906f398e4/0e8ec401de337ae9?lnk=gst&q=uninstall#0e8ec401de337ae9

What I don't know is what c# (or other) code to write that accesses
this function to uninstall an app. Anyone got a small example? Seems
like all I see anywhere are examples of the xml, and never example of
the code calling the function - lol.

Thanks for any hints!

Re: Don't understand how to call DMProcessConfigXML - code example? by Christopher

Christopher
Tue Mar 11 20:30:03 CDT 2008

Hi,

"sherifffruitfly" <sherifffruitfly@gmail.com> wrote in message
news:d692f5c1-2743-46c0-8c00-dca1f71120a5@e23g2000prf.googlegroups.com...
> What I don't know is what c# (or other) code to write that accesses
> this function to uninstall an app. Anyone got a small example?

The link you provided outlined the XML you need to pass to the function. The
technical documentation for how to come up with that XML can be found on
MSDN at http://msdn2.microsoft.com/en-us/library/bb737577.aspx . It is the
Uninstall Configuration Service Provider (CSP).

In order to do this via managed code you can make use of the
ConfigurationManager.ProcessConfiguration method
(http://msdn2.microsoft.com/en-us/library/microsoft.windowsmobile.configuration.configurationmanager.processconfiguration.aspx)
if you are on a Windows Mobile 5.0 or higher device.

If you are using an older device, or need to do this in native code you need
to investigate a native function called DMProcessConfigXML (as documented on
MSDN at http://msdn2.microsoft.com/en-us/library/ms852998.aspx).

Hope this helps,
Christopher Fairbairn



Re: Don't understand how to call DMProcessConfigXML - code example? by sherifffruitfly

sherifffruitfly
Wed Mar 12 12:43:25 CDT 2008

On Mar 11, 6:30=A0pm, "Christopher Fairbairn"
<christop...@christec.co.nz> wrote:
> Hi,
>
> "sherifffruitfly" <sherifffruit...@gmail.com> wrote in message
>
> news:d692f5c1-2743-46c0-8c00-dca1f71120a5@e23g2000prf.googlegroups.com...
>
> > What I don't know is what c# (or other) code to write that accesses
> > this function to uninstall an app. Anyone got a small example?
>
> The link you provided outlined the XML you need to pass to the function. T=
he
> technical documentation for how to come up with that XML can be found on
> MSDN athttp://msdn2.microsoft.com/en-us/library/bb737577.aspx. It is the
> Uninstall Configuration Service Provider (CSP).
>
> In order to do this via managed code you can make use of the
> ConfigurationManager.ProcessConfiguration method
> (http://msdn2.microsoft.com/en-us/library/microsoft.windowsmobile.conf...)=

> if you are on a Windows Mobile 5.0 or higher device.
>
> If you are using an older device, or need to do this in native code you ne=
ed
> to investigate a native function called DMProcessConfigXML (as documented =
on
> MSDN athttp://msdn2.microsoft.com/en-us/library/ms852998.aspx).
>
> Hope this helps,
> Christopher Fairbairn

ConfigurationManager.ProcessConfiguration sounds like exactly what I
needed - thanks!