Skip to content

Instantly share code, notes, and snippets.

@StephanTLavavej
StephanTLavavej / videos.md
Last active October 11, 2024 07:40
C++ Videos by Stephan T. Lavavej
@rounk-ctrl
rounk-ctrl / Dark.md
Last active November 5, 2024 23:03
Win32 Dark Mode

Dark Mode APIs.

API Signatures.

ShouldAppsUseDarkMode()

Checks whether system is using dark mode or not.
Signature:

using fnShouldAppsUseDarkMode = bool (WINAPI*)(); // ordinal 132

AllowDarkModeForWindow(In HWND hWnd, In bool allow)