Partager via


Querying Network Settings

4/8/2010

You can use the DMProcessConfigXML function to query any of the network settings. For more information on DMProcessConfigXML, see this Microsoft web site.

The following string would query for the DestId parameter of a PPP connection inside the CM_PPPEntries configuration service provider when passed to DMProcessConfigXml.

<characteristic type="CM_PPPEntries">
    <characteristic type="CorpNetPPP">
      <parm-query name="DestId" />
    </characteristic>
</characteristic>

Passing this string to DMProcessConfigXml queries the configuration service provider for the value of the DestId parameter for that particular PPP connection, and returns the following XML string:

<characteristic type="CM_PPPEntries">
    <characteristic type="CorpNetPPP">
      <parm name="DestId" value="{A1182988-0D73-439e-87AD-2A5B369F808B}" />
    </characteristic>
</characteristic>

See Also

Other Resources

Connection Manager Application Development