Hi All,
Is there a way to detect the screen resolution from a kernel driver (on Windows XP)? I think what I’m looking for is a kernel-level equivalent of “GetSystemMetrics(SM_CXSCREEN)”.
Thanks.
Hi All,
Is there a way to detect the screen resolution from a kernel driver (on Windows XP)? I think what I’m looking for is a kernel-level equivalent of “GetSystemMetrics(SM_CXSCREEN)”.
Thanks.
xxxxx@gatech.edu wrote:
Is there a way to detect the screen resolution from a kernel driver (on Windows XP)? I think what I’m looking for is a kernel-level equivalent of “GetSystemMetrics(SM_CXSCREEN)”.
Not really. Graphics is a user-mode concept (even though most of GDI
actually runs in the kernel).
Even in user mode, this question no longer has a simple answer, because
so many people run several display cards and multiple monitors.
SM_CXSCREEN on my machine returns 1280, although I actually have two
1280x1024 monitors side by side.
Why would you need this? You can’t display anything from kernel anyway.
–
Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.