For a client/server application I need to centrally store parts of the configuration information that usually goes into the users profile directory.
The client application would on first use write a file or registry entry with a GUID into the current profile. This GUID would subsequently be used as a key in the configuration database on the server.
Now I'm wondering if Windows user profiles already have unique identifiers I could use instead of generating my own GUIDs.
The username won't work because users might have multiple profiles. Combining it with the computer name won't work because there might be roaming profiles.
Update:
I just looked at the SIDs in HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\ProfileList
on two computers in the same domain. Roaming is not enabled, so my user account has a separate profile on each machine. Both profiles are listed with the same SID. This means I have to keep generating my own GUIDs.