wm command to switch profiles problem

 

I have been able to get almost every wm command to work except this one:


 PostMessageA(hndl, WM_COMMAND, 34100, 0); // for the first profile

 

is there a different function I should be using? is PostMessageA correct?  

 
this is the file I am using/
Files:
 
Now this command is not working. Please any one can help to with this. I have to change profile using a script.
 
Kashif Javed:
Now this command is not working. Please any one can help to with this. I have to change profile using a script.

After Build 600, you need to use PostMessageW not PostMessageA (unicode not ANSI)