Zhiyi Zhang (@zhiyi) commented about dlls/uxtheme/tests/system.c:
+static void test_ShouldUseDarkMode(void) +{
- DWORD systemUsesLightTheme, systemusesLightThemeType, systemUsesLightThemeSize = sizeof(DWORD);
- HKEY hk = HKEY_CURRENT_USER;
- LRESULT lr;
- pShouldSystemUseDarkMode = (void *)GetProcAddress(GetModuleHandleA("uxtheme.dll"),
MAKEINTRESOURCEA(138));
- if (!pShouldSystemUseDarkMode)
- {
skip("ShouldSystemUseDarkMode was not found.\n");
return;
- }
- lr = RegGetValueA(hk, "Software\Microsoft\Windows\CurrentVersion\Themes\Personalize", "AppsUseLightTheme",
Many of the RegGetValueA() parameters are optional. You can skip passing them if they're not important.