Desktop Functions: Smart Device Functions:
|
DMProcessConfigXML (aygshell)
aygshell is for smart devices, not desktop Windows. Therefore, this information only applies to code using the .NET Compact Framework. To see if information for DMProcessConfigXML in other DLLs exists, click on Find References to the right. C# Signature:
[DllImport("aygshell.dll", CharSet = CharSet.Unicode)] User-Defined Types:
public enum CFGFlags : uint { Alternative Managed API:Microsoft.SmartDevice.Connectivity.Device.ProvisionDevice(string, Device.ConfigActions), although it is a desktop managed method and only works remotely, whereas this P/Invoke can be executed directly on the device. Notes:It is very important to properly dispose of the char* buffer that is created by this call. See the sample code for a wrapper method that can make this easy. Sample Code:
[DllImport("coredll.dll", EntryPoint = "??_V@YAXPAXABUnothrow_t@std@@@Z")]
static extern void DeleteArray(IntPtr ptr, IntPtr junk);
public static CONFIG_E DMProcessConfigXML(
string xml, CFGFlags flags, out string resultXml) {
CONFIG_E result;
unsafe {
char* xmlOutPointer;
result = DMProcessConfigXML(xml, flags, out xmlOutPointer);
resultXml = new string(xmlOutPointer);
DeleteArray((IntPtr)xmlOutPointer, IntPtr.Zero);
}
return result;
}
Documentation: DMProcessConfigXML@msdn on MSDN Please edit this page!Do you have...
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more). |
|