The profile isn't communicated to the running software, but when you
open the panel it reads the registry, hence why it is right. A reboot
will fix the running software. I don't know of another method myself.
riki
main(){printf("%d != %d, why?", sizeof('"')["'"],(sizeof('"'))["]\"\0["]);}
By Night:
ThemeChanger for Smartphone : http://homepages.inspire.net.nz/~gambit/
AbstractStart for Smartphone :
http://homepages.inspire.net.nz/~gambit/AbstractStart/
By Day: http://www.EmbeddedFusion.com
--
Alex Feinman
---
Visit http://www.opennetcf.org
"riki" <see_my_home@page> wrote in message
news:uf3YoguE...@tk2msftngp13.phx.gbl...
riki
main(){printf("%d != %d, why?\n", sizeof('"')["'"],
@"<wap-provisioningdoc>
<characteristic type = ""Registry"">
<characteristic type=""HKCU\ControlPanel\Profiles"">
<parm name=""ActiveProfile"" value=""Normal""
datatype=""string""/>
</characteristic>
</characteristic>
</wap-provisioningdoc>";
But it seems the change was not communicated to other applications.
There must be some way to broadcast registry changes as soon as they
are made since when using the built-in profile selecting application,
the new profile takes effect immediately.
oh bugger.
well last time i had to change the profile programaticly, I just
rebooted. Sorry. There isn't a specific API which does this change :-(
This topic pops up here from time to time.
I managed to change the profiles programmatically and immediately
without a reboot. I simulated key presses of the quicklist hotkey and
then the number of the profile I wanted to change the phone to.
I hope this helps.
Ben
riki <see_my_home@page> wrote in message news:<OOJq0M6E...@TK2MSFTNGP14.phx.gbl>...