mirror of
https://github.com/Microsoft/calculator.git
synced 2025-07-30 03:28:24 -07:00
Update group policy check to look in HKCU instead of HKLM for allowing graphing mode (#918)
* Update group policy check to look in HKCU instead of HKLM * Update the dwFlags to use RRF_RT_DWORD.
This commit is contained in:
parent
6c524e68e2
commit
42dcfdc598
1 changed files with 2 additions and 2 deletions
|
@ -89,10 +89,10 @@ bool IsGraphingModeEnabled()
|
||||||
DWORD bufferSize{ sizeof(allowGraphingCalculator) };
|
DWORD bufferSize{ sizeof(allowGraphingCalculator) };
|
||||||
// Make sure to call RegGetValueW only on Windows 10 1903+
|
// Make sure to call RegGetValueW only on Windows 10 1903+
|
||||||
if (RegGetValueW(
|
if (RegGetValueW(
|
||||||
HKEY_LOCAL_MACHINE,
|
HKEY_CURRENT_USER,
|
||||||
L"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\Calculator",
|
L"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\Calculator",
|
||||||
L"AllowGraphingCalculator",
|
L"AllowGraphingCalculator",
|
||||||
RRF_RT_REG_DWORD | RRF_RT_REG_BINARY,
|
RRF_RT_DWORD, // RRF_RT_DWORD == RRF_RT_REG_DWORD | RRF_RT_REG_BINARY
|
||||||
nullptr,
|
nullptr,
|
||||||
reinterpret_cast<LPBYTE>(&allowGraphingCalculator),
|
reinterpret_cast<LPBYTE>(&allowGraphingCalculator),
|
||||||
&bufferSize)
|
&bufferSize)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue