Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm posting here because this question has nothing to do with how to program something and everything to do with a screwed up computer.

When I run the following line of VB .Net code in the Visual Studio 2010 Immediate Window:

MsgBox(My.Computer.Registry.GetValue("HKEY_CURRENT_USER\Control Panel\Desktop\ProductName",                                               "SCRNSAVE.EXE", Nothing)) 

then I get the following message box:

---------------------------
Screensaver State Checker
---------------------------
C:\Windows\system32\PhotoScreensaver.scr
---------------------------
OK   
---------------------------

This makes no sense because the registry doesn't even have a SCRNSAVE.exe entry in the screenshot.

enter image description here

In fact, the current screensaver according to the Windows Control Panel is "(None)."

By the way, prior to this little exercise with VB .Net, I was having all sorts of problems trying to get the screensaver to turn on at the right times.

How can I fix this problem?

System Information:

  • ThinkPad T400
  • Windows 7 Ultimate 32-bit edition
  • More info upon request
share|improve this question

closed as off topic by Oliver Salzburg Jul 29 '12 at 20:32

Questions on Super User are expected to relate to computer software or computer hardware within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

    
Your screenshot isn't looking in the right place. You need to look at the Product branch. –  user3463 Jul 29 '12 at 5:57
    
To add to what Randolph said, your code is looking at HKEY_CURRENT_USER\Control Panel\Desktop\ProductName, but your screenshot stops at the Desktop key. Drop the "\ProductName" from the code, as your screenshot is correct. –  Patrick S. Jul 29 '12 at 12:21

1 Answer 1

up vote 1 down vote accepted

Patrick S had the right answer:

your code is looking at HKEY_CURRENT_USER\Control Panel\Desktop\ProductName, but your screenshot stops at the Desktop key. Drop the "\ProductName" from the code, as your screenshot is correct.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.