Travel Neil

About   Christmas Trip   Life In Finland   Programming  

Accessing the WndProc in a UWP Application

Cover image for Accessing the WndProc in a UWP Application
Sun 10 Jan 2021, 08:00:00

tags: programming uwp windows win32 c# horror

I was putting together a Raspberry Pi-powered bus schedule board running Windows 10 IoT the other day, when I realized that if I didn't want the thing blinding me while I tried to sleep, I needed some way to control the screen's brightness. Eventually, I found the required Windows registry keys to configure the display timeout. Unfortunately, turning the display off just made it go black–it didn't actually turn off the backlight. Some more investigation eventually yielded a method to control this particular display's backlight brightness over SPI, but now I had a new problem--I needed a way to dim the backlight when the display turned off, and to restore it when it came back on. In order to do that, I need to know when the display is turned on and off.

continue reading...

  1. A Saner Windows Command Line - Part 3

    Cover image for A Saner Windows Command Line - Part 3
    Thu 23 Aug 2018, 10:44:00

    tags: Windows command-line programming console chocolatey conemu git

    Turbocharging the Windows Command Line, Pt. 3

  2. A Saner Windows Command Line - Part 2

    Cover image for A Saner Windows Command Line - Part 2
    Thu 23 Aug 2018, 10:43:00

    tags: Windows command-line programming console chocolatey conemu git

    Turbocharging the Windows Command Line, Pt. 2

  3. A Saner Windows Command Line - Part 1

    Cover image for A Saner Windows Command Line - Part 1
    Thu 23 Aug 2018, 09:08:00

    tags: Windows command-line programming console chocolatey conemu git

    Turbocharging the Windows Command Line, Pt. 1

  4. Talking to Win32 in Rust

    Sun 23 Jul 2017, 00:12:00

    tags: Programming Rust Win32 Windows VLC

    How to make Rust do your bidding

Powered by Pelican, which takes great advantage of Python. Theme is a modified cebong .