Photoshop color management help

When I open a pic/photo in photoshop CS, it appears a lot darker then how it is supposed to be. Which means the photo looks normal in windows picture viewer and all other programs, but when I use photoshop, it turns darker.

So when I render something in photoshop and open the file in jpeg with other programs, it’s too light.

How do I set it to what it should be? I don’t remember messing with any of those color settings.