> > Err, I tried to locate the piece of code that does this, but it appears to
> > be missing too.
> No it's done onec by the code to create a new user. Wine does not have any function
> like this. Its a job for wineinstall or so...
> Till then HKU/.Default is completely unused.


Good to know. Have to add it to my winesetup stuff in our RPM ;)


> > > > It appears to have broken at least the ...\ShellFolders\ subkey used by some
> > > > programs to find the Programs Menu. (exhibited by Diablo 2)
> > > The right way is to copy HKEY_USERS\.Default on first use to HKEY_USERS\UserName
> > > and/or implement SHGetSpecialFolder location right (look into HKLM if in HKCU is 
>found nothing)
> > > and create such keys in HKLM by wineinstall.
> > 
> > Diablo 2 directly queries the registry key I am afraid.
> which one? in HKLM?

No, in HCU:

Call advapi32.227: RegOpenKeyExA(80000001,2b364b1c "SOFTWARE\\Microsoft\\Windows
\\CurrentVersion\\Explorer\\Shell Folders",00000000,00020019,2b364afc) ret=00404
ca5 fs=008f
Ret  advapi32.227: RegOpenKeyExA() retval=00000000 ret=00404ca5 fs=008f
...
Call advapi32.235: RegQueryValueExA(00000054,2b364c20 "Programs",00000000,2b364a
fc,2b365cb0,2b364b14) ret=00404e70 fs=008f
Ret  advapi32.235: RegQueryValueExA() retval=00000000 ret=00404e70 fs=008f

Ciao, Marcus

Reply via email to