laziness, impatience, and hubris PerlMonks

### Re: win32 help...

by CubicSpline (Friar)
 on Sep 25, 2001 at 04:06 UTC ( #114446=note: print w/ replies, xml ) Need Help??

in reply to How to get screen resolution under Win32?

Look into the Win32-API module which allows you access to the windows registry. From there, look at HKEY_LOCAL_MACHINE\Config\0001\Display\Settings\Resolution.

I may get down-voted for answering this, but it isn't exactly obvious and maybe someone else could benefit.

Comment on Re: win32 help...
Replies are listed 'Best First'.
Re: Re: win32 help...
by John M. Dlugosz (Monsignor) on Sep 25, 2001 at 05:00 UTC
Maybe it varies between Win32 OS's, because I see nothing remotely like that. No Config key under HKLM, and no Resolution key or named value with this information anywhere in the Registry.

This is Windows 2000.

—John

Yes. HKLM isn't really used by MS on Win2k. I'm not sure, but I don't think XP uses it at all.
HKLM\Software is used extensivly. That's where Classes is stored, as are all-user settings for everything. HKLM\System has tons of stuff in it. HKLM\hardware is used, too.

So I think HKLM is "really used". On NT4, there are the same 5 sybkeys. So if there's any real difference, it's between Win9x and NT/2000, nothing significant changed in 2k.

Create A New User
Node Status?
node history
Node Type: note [id://114446]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2016-05-05 04:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
Voting Booth?
What font do you use for programming?

Results (89 votes). Check out past polls.