How to detect the monitor status
<p>I have a console application.
Import a Dll to get the monitor status such as the monitor is off or monitor is on.</p>

<p>I use the <code>protected override void WndProc(ref System.Windows.Forms.Message m)</code> method
in the dll project. Of course i have to use the <code>WndProc</code> method under a winForm.</p>

<p>So when my program is running, it will display a winForm and a console window.
it seem to no useful when the focus is not on the winForm.
i think that the <code>WndProc</code> is invalid when the focus is not on the winForm.</p>

<p>How can i get the monitor status in the Dll?</p>
