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




Similar help and support threads
Thread Forum
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
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
Windows Embedded Standard 2009 Gets New Features.
Source - Windows Embedded Standard 2009 Gets New Features - Out-of-band - Softpedia
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 17:00.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App