Home | Info | Community | Development | myReactOS | Contact Us
[static]
Definition at line 18 of file display.c.
Referenced by HighContrastDlgProc().
{ TCHAR szValue[128]; DWORD dwDisposition; DWORD dwLength; HKEY hKey; LONG lError; INT i; lError = RegCreateKeyEx(HKEY_CURRENT_USER, _T("Control Panel\\Appearance\\Schemes"), 0, NULL, REG_OPTION_NON_VOLATILE, KEY_ENUMERATE_SUB_KEYS | KEY_EXECUTE | KEY_QUERY_VALUE, NULL, &hKey, &dwDisposition); if (lError != ERROR_SUCCESS) return; for (i = 0; ; i++) { dwLength = 128; lError = RegEnumValue(hKey, i, szValue, &dwLength, NULL, NULL, NULL, NULL); if (lError == ERROR_NO_MORE_ITEMS) break; SendMessage(hwnd, CB_ADDSTRING, 0, (LPARAM)szValue); } RegCloseKey(hKey); }