Jens,

There are KEYS - VALUES - DATA in the Registry.

HKLM - KEY
HKLM\SOFTWARE - KEY
HKLM\SOFTWARE\STUFF - KEY
-> LocalPath - VALUE
-> AutoStart - VALUE
-> AutoStart [true] - DATA (true is the data]

You need the ENUMVALUE which you have a UDF for, but then you also need an ENUMDATA

i.e. ENUMKEY, ENUMVALUE, ENUMDATA The ENUMDATA is missing from the picture that would have solved this issue.