Summary: Discusses XML Provisioning of Devices
All Windows Mobile 5.0 devices support the use of XML to configure the device and to query configuration information about the device. The XML provisioning system is exposed through the Configuration Manager which is responsible for managing and providing a common access point for the various configuration service providers in the system. The Configuration Provider is directly accessible from both Native Win32 and .NET Compact Framework programs.
*Native Win32 applications use the
DMProcessConfigXML *.NET Compact Framework applications use the
ConfigurationManagerThe following shows using the XML Provisioning system from C# to add a new Pocket IE favorite
using System.Xml;
using [Microsoft.WindowsMobile.Configuration;]
// ...
string configurationXml =
@"<wap-provisioningdoc>
<characteristic [type='BrowserFavorite'>]
<characteristic type='MSDN Mobility'>
<parm name='URL' value='http://msdn.microsoft.com/mobility'/>
</characteristic>
</characteristic>
</wap-provisioningdoc>";
// Load XML into the DOM
[XmlDocument] [configurationXmlDoc] = new [XmlDocument();]
[configurationXmlDoc.LoadXml(configurationXml);]
// Send to Configuration Manager
[ConfigurationManager.ProcessConfiguration(configurationXmlDoc,] false);
When doing a query, the call to
ProcessConfigurationMicrosoftWindowsMobile
ConfigurationConfigurationManager
ProcessConfiguration1_683b26ad.asp &
DMProcessConfigXML return XML with the query results. For an example of the XML used to query the provisioning system and the XML returned by the query, checkout
How to determine the list of installed software SeeAlso: Configuration Manager Configuration Service Provider Reference Configuration Manager Provisioning XML File Examples