.Net Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming Languages - More.Net Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 2nd, 2012, 01:12 AM
RyanEricW RyanEricW is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2012
Posts: 1 RyanEricW User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 24 m 51 sec
Reputation Power: 0
Put Individual Monitors into Power Down State?

Hello, I am working in C#, and I have been working on a small project I thought might come in handy with those that have many monitors, and system developers.

Problem I have run into is, I cannot for the life of me figure out how to turn off only ONE monitor I specify. So far I have come across many articles that describe using the SendMessage function, and even using something similar to this:

Code:
 int deviceID;
            WinApi.DisplaySetting_Results result = 0;

            //manual gather - NewPrimary name ----------------------------------------------------
            WinApi.DISPLAY_DEVICE ddOne = new WinApi.DISPLAY_DEVICE();

            ddOne.cb = Marshal.SizeOf(ddOne);
            deviceID = mnum-1;
            WinApi.User_32.EnumDisplayDevices(null, deviceID, ref ddOne, 0);
            string MonitorName = ddOne.DeviceName;
            MessageBox.Show(MonitorName);

            WinApi.DEVMODE ndm4 = NewDevMode();
            ndm4.dmFields = WinApi.DEVMODE_Flags.DM_DISPLAYFLAGS;
            ndm4.dmDisplayFixedOutput = 0;

            result = (WinApi.DisplaySetting_Results)WinApi.User_32.ChangeDisplaySettingsEx(MonitorName, ref ndm4, (IntPtr)null, (int)WinApi.DeviceFlags.CDS_UPDATEREGISTRY, IntPtr.Zero);
            MessageBox.Show(result.ToString());


That does absolutely nothing atm, as I'm still researching the subject. I have successfully turned off ALL monitors using the SendMessage command, but wish to target each monitor selectively.

So far I have been able to collect this information via my program to utilize. If anyone knows of a way to send DDC/CI commands or target the monitors by some of this information let me know.
URL

Screenshot below....not sure why it's not showing up in the post via IMG tags.
http://rfiles.com/files/screen.png

Thank you for any information

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - More.Net Development > Put Individual Monitors into Power Down State?

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap