Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Reduce “BACKLIGHT” brightness in windows Embedded standard 7 using vc+

04 Feb 2016   #1
san500052

Windows 7 Embedded Standard
 
 
Reduce “BACKLIGHT” brightness in windows Embedded standard 7 using vc+

Is it possible to reduce the "Backlight brightness" in Windows Embedded standard 7, Monitor:Samsung DE40A programmatically with vc++ ? It is possible to reduce monitor backlight brightness with the monitor's remote.
I have been able to reduce brightness,contrast,gamma, and RGB values with the respective APIs SetMonitorBrightness, SetMonitorContrast, etc. Tried to use DeviceIoControl function with IOCTL_VIDEO_QUERY_SUPPORTED_BRIGHTNESS but the function call doesn't succeed, it gives a non-zero value and according to msdn the function has failed

Code:
//Get the handle HANDLE hLCD = CreateFile("\\\\.\\LCD",       // open LCD device                          GENERIC_READ,                  // access to the drive                          FILE_SHARE_READ|FILE_SHARE_WRITE,// share mode                          NULL,                          // default security attributes                          OPEN_EXISTING,                 // disposition                          0,                             // file attributes                          NULL);  if (hLCD == INVALID_HANDLE_VALUE) {     cout << "error: Invalid Handle, unable to get LCD handle" << GetLastError() << endl;     return 1; }  BYTE SupportedBrightness[256]; DWORD nBytesReturned;  int nRes = DeviceIoControl(                (HANDLE) hLCD,                           // handle to device                IOCTL_VIDEO_QUERY_SUPPORTED_BRIGHTNESS,  // dwIoControlCode                NULL,                                    // lpInBuffer                0,                                       // nInBufferSize                (LPVOID) SupportedBrightness,            // output buffer                sizeof(SupportedBrightness),             // size of output buffer                (LPDWORD) &nBytesReturned,               // bytes returned                NULL                                     // OVERLAPPED            );  if (nRes == 0) {     cout << "error: Backlight Not Supported" << GetLastError() << endl;     return 2; }  cout << "Supported levels:: "; for (DWORD i=0; i<nBytesReturned; i++) {     cout << (DWORD)SupportedBrightness[i] << ", "; } cout << endl << endl
;
I end up getting "Backlight not supported", but I can change back light brightness from Samsung Monitor's remote.


My System SpecsSystem Spec
.
Reply

 Reduce “BACKLIGHT” brightness in windows Embedded standard 7 using vc+




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Windows Embedded Standard 7 Product Activation
Several month ago I obtained the Windows Embedded Standard 7 180-day evaluation package (DVDs). Using IBW and the Application Compatibility template, I was quickly able to generate an OS image that has been working very well. I have added a number drivers, 3rd party applications, our applications...
Windows Updates & Activation
Windows Embedded Standard 7 installation.
Alright, so here's what's up, I downloaded the Windows Embedded Standard 7 .iso and I installed it into a VM to test it. Now, I want to install it onto a USB flash drive. The problem is that it doesn't detect the flash drive at all. Do I need to actually burn off a DVD, boot from that, and...
Installation & Setup
Windows Embedded Standard 7 Service Pack 1 (SP1)
http://connect.microsoft.com/SiteImages/8695ae9f-6522-4a2f-89b3-8fc4c59a0e2b.png
News
What is Windows Embedded Standard 7 ??
Hi all , I found at forum topic that talks about Microsoft Windows Embedded Standard 7 , What is that system and should we go for it instead of Windows 7 Ultimate or what ??? Componentized System | Powered by Windows Embedded 7 | Windows Embedded Standard 7
General Discussion
Windows Embedded Standard 7 Overview .
More - Componentized System | Powered by Windows Embedded 7 | Windows Embedded Standard 7
News
Several SP1 Releases for Windows Embedded Standard 7
Microsoft indicates that it is highly probable that multiple versions of Service Pack 1 will be offered for Windows Embedded Standard 7. Matthew Tundo, a software development engineer on the Windows Embedded team, explains that although the several different versions of each service pack will bring...
News


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 12:01.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App