O.P. RE: wlm 2011
I've done some more debugging and it seems everything goes well looking to the debug window. This is how I checked the values of the variables:
Debug.Trace("Set default account = " + email);
Debug.Trace("Registry_SetKeyValue resultWLMkey = " + resultWLMkey);
Debug.Trace("Registry_SetKeyValue resultMPLkey = " + resultMPLkey);
Debug.Trace("Get WLMkey value = " + Registry_GetKeyValue(HKey, MessengerKey, 'DefaultMemberName'));
Debug.Trace("Get MPLkey value = " + Registry_GetKeyValue(HKey, MPLkey, 'DefaultUser'));
But the drop down list is holding the first 'default member' to sign in. Its not changing it to the next email address.
This kind of gives me the idea that there is another new registry setting that the new version uses which is not in the MSNMessenger.
I've done a search in the registry but I couldn't find any. I'm not sure where else to look where this new version keeps track of its settings except the registry.