Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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...
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?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (10)
As of 2014-09-19 09:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (133 votes), past polls