HOW: turn off only the primary monitor

TF3K's Avatar
Newbie Member
I have 2 monitors.
how do i make a program that will shut down only the priamry monitor
i know there's the SendMessage function with SC_MONITORPOWER..
but when i used it - the program turns off both of the monitors, and i only need one monitor to be turned off.

any help?
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Are you looking something in C-C++ to do it as you have submitted it in C-C++ section.
unalterable's Avatar, Join Date: Aug 2009
Newbie Member
TF3K... Have you developed a way of automatically switching off the primary monitor in windows. I would be very interested in any results you have?