Question Read Registry Key with Type {0}

ÜnLoCo

Member
Joined
Jul 18, 2009
Messages
8
Programming Experience
Beginner
hello
i got an unexpected problem when i tried to read this registry key

chevy3958.png




VB.NET:
Dim k As Microsoft.Win32.RegistryKey = My.Computer.Registry.CurrentUser _
    .OpenSubKey("Software").OpenSubKey("DownloadManager").OpenSubKey(key)

        Dim v = k.GetValue("Downloaded")
 
help said:
GetValue does not support reading values of type REG_NONE or REG_LINK. In both cases, the default value (null reference (Nothing in Visual Basic)) is returned instead of the actual value.
How did the value end up there as 'none' type?
 
The value is not "mine" it's an IDM(internet DL manager) value

050813259.png


you see i want to "connect" to IDM via the registry keys he sets for every download
and the most important key id the "Dowloaded" which gives me back the progress knowing the Total Size "FileSize"
So i don't have much to change , i gotta start from what's in there :(
i read Note3 in the msdn page and i thought maybe there's another way around :D
i'm afraid i'd end up reading the (.dat) files !! ;)
 
Back
Top