I am trying to read keys and values from the registry. The keys I am looking for do exist in the registry, but the variable mRegKey is still Nothing after the first line is run.
I have also tried different keys under HKLM\Software, some work and some dont. HKLM\Software\ATI is found but HKLM\Software\Oracle is not (both are shown in regedit).

Code:
        mRegKey = Registry.LocalMachine.OpenSubKey("SOFTWARE\Stockenstrand\DemoPC", False)
        If Not mRegKey Is Nothing Then
            mSettingImagePath = mRegKey.GetValue("ImagePath")
            mSettingSourceDrive = mRegKey.GetValue("SourceDrive")
            mSettingVirtualDrive = mRegKey.GetValue("VirtualDrive")
            mRegKey.Close()
        End If