Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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.

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://114446]
help
Chatterbox?
[choroba]: sorry, typo. Works for me with 15 which is the default
[choroba]: Timestamps should work correctly now
[Tux]: I need 17 on both my boxes

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (8)
As of 2017-09-19 20:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (228 votes). Check out past polls.

    Notices?