DMProcessConfigXML fails while loading dlls on the windows mobile 6.5.
- by jieun
What I want to do is uninstall my program on the device Programmatically.
So I trying to use DMProcessConfigXML() as this site
It seems to work well on the emulator, but it didn't work on my device.
Application goes exit after calling DMProcessConfigXML() without return result code.
This is a part of code.
after line 2, program is terminated.
const wchar_t *_deleteUninstallOFficeLiteXML =
L"<wap-provisioningdoc>"
L" <characteristic type=\"UnInstall\">"
L" <characteristic type=\"myApp\">"
L" <parm name=\"uninstall\" value=\"1\"/>"
L" </characteristic>"
L" </characteristic>"
L"</wap-provisioningdoc>";
1. HRESULT hr = E_FAIL;
2. hr = DMProcessConfigXML(_deleteUninstallXML, CFGFLAG_PROCESS, &out);
3. if (FAILED(hr))
4. { ...
Does anyone know why this happen and how to fix?