I need to read and write to the current logged in users
HKEY_USERS\SID#\Software\Microsoft\Windows
NT\CurrentVersion\Windows Messaging Subsystem\ hive, but if a
system has more than one user that has logged on there will be
more than one set of registry sid keys. How can I get the sid from
the current username? I can get the username, but I need to be
able to map it to the sid#.

Thanks in advance for any assistance.