Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Get hWnd for secondary display

I have multiple monitors connected to a pc and I need to set all but the primary display to standby through code. I can shutdown all the displays at once but I need to find the hWnd of the secondary displays (secondary desktops?) to shut them down individually.

Does anyone know how to get this? I can get the primary hWnd using C# but that's the one I DON'T need.

Thanks.
[402 byte] By [Kamikazi] at [2007-11-11 9:59:00]