📜  windows 检测系统暗模式 - 汇编代码示例

📅  最后修改于: 2022-03-11 14:48:10.589000             🧑  作者: Mango

代码示例1
RegGetValueA - gets a value from the registry (winreg.h)
use it to retrieve this key:
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize\AppsUseLightTheme
res == ERROR_SUCCESS && data == 0 = dark mode
otherwise = light mode (1 is light and fallback should be light)