25#define REG2METRIC(reg) (reg > 0 ? reg : ((-(reg) * dpi + 720) / 1440))
26#define METRIC2REG(met) (-((((met) * 1440)- 0) / dpi))
28#define REQ_INTERACTIVE_WINSTA(err) \
30 if (GetW32ProcessInfo()->prpwinsta != InputWindowStation) \
32 if (GetW32ProcessInfo()->prpwinsta == NULL) \
34 ERR("NtUserSystemParametersInfo called without active window station, and it requires an interactive one\n"); \
38 ERR("NtUserSystemParametersInfo requires interactive window station (current is '%wZ')\n", \
39 &(OBJECT_HEADER_TO_NAME_INFO(OBJECT_TO_OBJECT_HEADER(GetW32ProcessInfo()->prpwinsta))->Name)); \
41 EngSetLastError(err); \
78#if (_WIN32_WINNT >= 0x0600)
79static const WCHAR* VAL_SCRLLCHARS =
L"WheelScrollChars";
83static const WCHAR*
KEY_MDALIGN =
L"Software\\Microsoft\\Windows NT\\CurrentVersion\\Windows";
125 cbSize =
sizeof(awcBuffer);
126 if (!RegReadUserSetting(pwszKey, pwszValue,
REG_SZ, awcBuffer, cbSize))
130 return _wtoi(awcBuffer);
150 RtlZeroMemory(&szApplicationName,
sizeof(szApplicationName));
155 if (szApplicationName[0] == 0)
return 0;
173 TRACE(
"Loaded metric setting '%S', iValue=%d(reg:%d), ret=%d(reg:%d)\n",
190 *plfOut = *plfDefault;
221 if (RegReadUserSetting(
L"Control Panel\\Desktop",
L"WindowArrangementActive",
222 REG_SZ, szValue,
sizeof(szValue)))
225 return (
_wtoi(szValue) != 0);
241 TRACE(
"Enter SpiUpdatePerUserSystemParameters\n");
266 gspv.
ncm.cbSize =
sizeof(NONCLIENTMETRICSW);
276#if (WINVER >= 0x0600)
293 gspv.
im.cbSize =
sizeof(ICONMETRICSW);
312#if (_WIN32_WINNT >= 0x0600)
381 TRACE(
"Enter NtUserUpdatePerUserSystemParameters\n");
391 TRACE(
"Leave NtUserUpdatePerUserSystemParameters, returning %d\n", bResult);
404 RegWriteUserSetting(pwszKey,
415 RegWriteUserSetting(pwszKey,
428 _itow(iValue, awcBuffer, 10);
429 RegWriteUserSetting(pwszKey,
484 ERR(
"SpiMemCopy failed, pvDst=%p, pvSrc=%p, bProtect=%d\n", pvDst, pvSrc, bProtect);
535 SpiStoreSz(pwszKey, pwszValue, bValue ?
L"Yes" :
L"No");
614 WARN(
"Failed to read UserPreferencesMask setting\n");
619 dwRegMask = bValue ? (dwRegMask | dwMask) : (dwRegMask & ~dwMask);
649 ULONG ulTile, ulStyle;
700 ERR(
"RtlDosPathNameToNtPathName_U failed\n");
708 ERR(
"UserLoadImage failed\n");
731 TRACE(
"SpiSetWallpaper: ulTile=%lu, ulStyle=%lu\n", ulTile, ulStyle);
734 if (ulTile && !ulStyle)
738 else if (!ulTile && ulStyle)
744 else if (ulStyle == 6)
748 else if (ulStyle == 10)
764 if(hOldBitmap !=
NULL)
783 PWND pwndDesktop, pwndCurrent;
795 for (
i = 0; ahwnd[
i];
i++)
845 uiParam =
max(uiParam, 1);
855 ERR(
"SPI_LANGDRIVER is unimplemented\n");
884 ERR(
"SPI_SETDESKPATTERN is unimplemented\n");
898 uiParam =
max(uiParam, 32);
906 uiParam =
max(uiParam, 32);
952 case SPI_GETDRAGFULLWINDOWS:
955 case SPI_SETDRAGFULLWINDOWS:
958 case SPI_GETNONCLIENTMETRICS:
963 case SPI_SETNONCLIENTMETRICS:
965 LPNONCLIENTMETRICSW
metrics = (LPNONCLIENTMETRICSW)pvParam;
968 metrics->cbSize =
sizeof(NONCLIENTMETRICSW);
984#if (WINVER >= 0x0600)
1000 case SPI_GETMINIMIZEDMETRICS:
1005 case SPI_SETMINIMIZEDMETRICS:
1031 case SPI_GETICONMETRICS:
1036 case SPI_SETICONMETRICS:
1038 LPICONMETRICSW
metrics = (LPICONMETRICSW)pvParam;
1041 metrics->cbSize =
sizeof(ICONMETRICSW);
1056 case SPI_GETWORKAREA:
1066 case SPI_SETWORKAREA:
1069 RECTL rcWorkArea, rcIntersect;
1102 case SPI_SETPENWINDOWS:
1103 ERR(
"SPI_SETPENWINDOWS is unimplemented\n");
1110 if (uiParam != 0 && uiParam !=
sizeof(
FILTERKEYS))
1123 if (uiParam != 0 && uiParam !=
sizeof(
FILTERKEYS))
1143 if (uiParam != 0 && uiParam !=
sizeof(
TOGGLEKEYS))
1156 if (uiParam != 0 && uiParam !=
sizeof(
TOGGLEKEYS))
1176 if (uiParam != 0 && uiParam !=
sizeof(
MOUSEKEYS))
1189 if (uiParam != 0 && uiParam !=
sizeof(
MOUSEKEYS))
1215 if (uiParam != 0 && uiParam !=
sizeof(
STICKYKEYS))
1228 if (uiParam != 0 && uiParam !=
sizeof(
STICKYKEYS))
1281 case SPI_GETSERIALKEYS:
1285 if (uiParam != 0 && uiParam !=
sizeof(
SERIALKEYS))
1294 case SPI_SETSERIALKEYS:
1298 if (uiParam != 0 && uiParam !=
sizeof(
SERIALKEYS))
1347 case SPI_GETHIGHCONTRAST:
1360 case SPI_SETHIGHCONTRAST:
1380 case SPI_GETKEYBOARDPREF:
1383 case SPI_SETKEYBOARDPREF:
1386 case SPI_GETSCREENREADER:
1389 case SPI_SETSCREENREADER:
1392 case SPI_GETANIMATION:
1395 case SPI_SETANIMATION:
1404 case SPI_GETFONTSMOOTHING:
1407 case SPI_SETFONTSMOOTHING:
1415 case SPI_SETDRAGWIDTH:
1418 case SPI_SETDRAGHEIGHT:
1421 case SPI_SETHANDHELD:
1424 case SPI_GETLOWPOWERTIMEOUT:
1427 case SPI_GETPOWEROFFTIMEOUT:
1430 case SPI_SETLOWPOWERTIMEOUT:
1433 case SPI_SETPOWEROFFTIMEOUT:
1436 case SPI_GETLOWPOWERACTIVE:
1439 case SPI_GETPOWEROFFACTIVE:
1442 case SPI_SETLOWPOWERACTIVE:
1445 case SPI_SETPOWEROFFACTIVE:
1448 case SPI_SETCURSORS:
1449 ERR(
"SPI_SETCURSORS is unimplemented\n");
1453 ERR(
"SPI_SETICONS is unimplemented\n");
1456 case SPI_GETDEFAULTINPUTLANG:
1462 case SPI_SETDEFAULTINPUTLANG:
1473 case SPI_SETLANGTOGGLE:
1478 case SPI_GETWINDOWSEXTENSION:
1479 ERR(
"SPI_GETWINDOWSEXTENSION is unimplemented\n");
1482 case SPI_GETMOUSETRAILS:
1485 case SPI_SETMOUSETRAILS:
1488 case SPI_GETSNAPTODEFBUTTON:
1491 case SPI_SETSNAPTODEFBUTTON:
1494 case SPI_GETMOUSEHOVERWIDTH:
1497 case SPI_SETMOUSEHOVERWIDTH:
1500 case SPI_GETMOUSEHOVERHEIGHT:
1503 case SPI_SETMOUSEHOVERHEIGHT:
1506 case SPI_GETMOUSEHOVERTIME:
1509 case SPI_SETMOUSEHOVERTIME:
1519 case SPI_GETWHEELSCROLLLINES:
1525 case SPI_GETMENUSHOWDELAY:
1528 case SPI_SETMENUSHOWDELAY:
1531#if (_WIN32_WINNT >= 0x0600)
1535 case SPI_SETWHEELSCROLLCHARS:
1538 case SPI_GETSHOWIMEUI:
1541 case SPI_SETSHOWIMEUI:
1544 case SPI_GETMOUSESPEED:
1547 case SPI_SETMOUSESPEED:
1556 case SPI_GETSCREENSAVERRUNNING:
1559 case SPI_SETSCREENSAVERRUNNING:
1563#if(WINVER >= 0x0600)
1564 case SPI_GETAUDIODESCRIPTION:
1565 return SpiGet(pvParam, &
gspv.audiodescription,
sizeof(AUDIODESCRIPTION),
fl);
1567 case SPI_SETAUDIODESCRIPTION:
1568 ERR(
"SPI_SETAUDIODESCRIPTION is unimplemented\n");
1571 case SPI_GETSCREENSAVESECURE:
1574 case SPI_SETSCREENSAVESECURE:
1578 case SPI_GETACTIVEWINDOWTRACKING:
1581 case SPI_SETACTIVEWINDOWTRACKING:
1584 case SPI_GETMENUANIMATION:
1587 case SPI_SETMENUANIMATION:
1590 case SPI_GETCOMBOBOXANIMATION:
1593 case SPI_SETCOMBOBOXANIMATION:
1596 case SPI_GETLISTBOXSMOOTHSCROLLING:
1599 case SPI_SETLISTBOXSMOOTHSCROLLING:
1602 case SPI_GETGRADIENTCAPTIONS:
1615 case SPI_SETGRADIENTCAPTIONS:
1618 case SPI_GETKEYBOARDCUES:
1621 case SPI_SETKEYBOARDCUES:
1624 case SPI_GETACTIVEWNDTRKZORDER:
1627 case SPI_SETACTIVEWNDTRKZORDER:
1630 case SPI_GETHOTTRACKING:
1633 case SPI_SETHOTTRACKING:
1636 case SPI_GETMENUFADE:
1639 case SPI_SETMENUFADE:
1642 case SPI_GETSELECTIONFADE:
1645 case SPI_SETSELECTIONFADE:
1648 case SPI_GETTOOLTIPANIMATION:
1651 case SPI_SETTOOLTIPANIMATION:
1654 case SPI_GETTOOLTIPFADE:
1657 case SPI_SETTOOLTIPFADE:
1660 case SPI_GETCURSORSHADOW:
1663 case SPI_SETCURSORSHADOW:
1667 case SPI_GETUIEFFECTS:
1670 case SPI_SETUIEFFECTS:
1673 case SPI_GETMOUSESONAR:
1676 case SPI_SETMOUSESONAR:
1679 case SPI_GETMOUSECLICKLOCK:
1682 case SPI_SETMOUSECLICKLOCK:
1686 case SPI_GETMOUSEVANISH:
1689 case SPI_SETMOUSEVANISH:
1692 case SPI_GETFLATMENU:
1695 case SPI_SETFLATMENU:
1698 case SPI_GETDROPSHADOW:
1701 case SPI_SETDROPSHADOW:
1704 case SPI_GETBLOCKSENDINPUTRESETS:
1707 case SPI_SETBLOCKSENDINPUTRESETS:
1710#if(_WIN32_WINNT >= 0x0600)
1711 case SPI_GETDISABLEOVERLAPPEDCONTENT:
1714 case SPI_SETDISABLEOVERLAPPEDCONTENT:
1717 case SPI_GETCLIENTAREAANIMATION:
1720 case SPI_SETCLIENTAREAANIMATION:
1723 case SPI_GETCLEARTYPE:
1726 case SPI_SETCLEARTYPE:
1729 case SPI_GETSPEECHRECOGNITION:
1732 case SPI_SETSPEECHRECOGNITION:
1736 case SPI_GETFOREGROUNDLOCKTIMEOUT:
1739 case SPI_SETFOREGROUNDLOCKTIMEOUT:
1742 case SPI_GETACTIVEWNDTRKTIMEOUT:
1745 case SPI_SETACTIVEWNDTRKTIMEOUT:
1748 case SPI_GETFOREGROUNDFLASHCOUNT:
1751 case SPI_SETFOREGROUNDFLASHCOUNT:
1754 case SPI_GETCARETWIDTH:
1757 case SPI_SETCARETWIDTH:
1760 case SPI_GETMOUSECLICKLOCKTIME:
1763 case SPI_SETMOUSECLICKLOCKTIME:
1766 case SPI_GETFONTSMOOTHINGTYPE:
1769 case SPI_SETFONTSMOOTHINGTYPE:
1772 case SPI_GETFONTSMOOTHINGCONTRAST:
1775 case SPI_SETFONTSMOOTHINGCONTRAST:
1778 case SPI_GETFOCUSBORDERWIDTH:
1781 case SPI_SETFOCUSBORDERWIDTH:
1784 case SPI_GETFOCUSBORDERHEIGHT:
1787 case SPI_SETFOCUSBORDERHEIGHT:
1790 case SPI_GETFONTSMOOTHINGORIENTATION:
1793 case SPI_SETFONTSMOOTHINGORIENTATION:
1821 ERR(
"Undocumented SPI value %x is unimplemented\n", uiAction);
1825 ERR(
"Invalid SPI value: %u\n", uiAction);
1851 case SPI_GETDRAGFULLWINDOWS:
1853 case SPI_GETKEYBOARDPREF:
1854 case SPI_GETSCREENREADER:
1855 case SPI_GETFONTSMOOTHING:
1856 case SPI_GETLOWPOWERTIMEOUT:
1857 case SPI_GETPOWEROFFTIMEOUT:
1858 case SPI_GETLOWPOWERACTIVE:
1859 case SPI_GETPOWEROFFACTIVE:
1860 case SPI_GETMOUSETRAILS:
1861 case SPI_GETSNAPTODEFBUTTON:
1862 case SPI_GETMOUSEHOVERWIDTH:
1863 case SPI_GETMOUSEHOVERHEIGHT:
1864 case SPI_GETMOUSEHOVERTIME:
1865 case SPI_GETWHEELSCROLLLINES:
1866 case SPI_GETMENUSHOWDELAY:
1867#if (_WIN32_WINNT >= 0x0600)
1870 case SPI_GETSHOWIMEUI:
1871 case SPI_GETMOUSESPEED:
1872 case SPI_GETSCREENSAVERRUNNING:
1873#if(WINVER >= 0x0600)
1874 case SPI_GETSCREENSAVESECURE:
1876 case SPI_GETACTIVEWINDOWTRACKING:
1877 case SPI_GETMENUANIMATION:
1878 case SPI_GETCOMBOBOXANIMATION:
1879 case SPI_GETLISTBOXSMOOTHSCROLLING:
1880 case SPI_GETGRADIENTCAPTIONS:
1881 case SPI_GETKEYBOARDCUES:
1882 case SPI_GETACTIVEWNDTRKZORDER:
1883 case SPI_GETHOTTRACKING:
1884 case SPI_GETMENUFADE:
1885 case SPI_GETSELECTIONFADE:
1886 case SPI_GETTOOLTIPANIMATION:
1887 case SPI_GETTOOLTIPFADE:
1888 case SPI_GETCURSORSHADOW:
1889 case SPI_GETUIEFFECTS:
1890 case SPI_GETMOUSESONAR:
1891 case SPI_GETMOUSECLICKLOCK:
1892 case SPI_GETMOUSEVANISH:
1893 case SPI_GETFLATMENU:
1894 case SPI_GETDROPSHADOW:
1895 case SPI_GETBLOCKSENDINPUTRESETS:
1896#if(_WIN32_WINNT >= 0x0600)
1897 case SPI_GETDISABLEOVERLAPPEDCONTENT:
1898 case SPI_GETCLIENTAREAANIMATION:
1899 case SPI_GETCLEARTYPE:
1900 case SPI_GETSPEECHRECOGNITION:
1902 case SPI_GETFOREGROUNDLOCKTIMEOUT:
1903 case SPI_GETACTIVEWNDTRKTIMEOUT:
1904 case SPI_GETFOREGROUNDFLASHCOUNT:
1905 case SPI_GETCARETWIDTH:
1906 case SPI_GETMOUSECLICKLOCKTIME:
1907 case SPI_GETFONTSMOOTHINGTYPE:
1908 case SPI_GETFONTSMOOTHINGCONTRAST:
1909 case SPI_GETFOCUSBORDERWIDTH:
1910 case SPI_GETFOCUSBORDERHEIGHT:
1911 case SPI_GETFONTSMOOTHINGORIENTATION:
1912 cbSize =
sizeof(
INT);
1917 if (pvParam) cbSize =
sizeof(
INT);
1921 cbSize = 3 *
sizeof(
INT);
1932 case SPI_GETNONCLIENTMETRICS:
1933 cbSize =
sizeof(NONCLIENTMETRICSW);
1936 case SPI_GETMINIMIZEDMETRICS:
1940 case SPI_GETICONMETRICS:
1941 cbSize =
sizeof(ICONMETRICSW);
1944 case SPI_GETWORKAREA:
1945 cbSize =
sizeof(
RECTL);
1968 case SPI_GETSERIALKEYS:
1976 case SPI_GETHIGHCONTRAST:
1980 case SPI_GETANIMATION:
1984 case SPI_GETDEFAULTINPUTLANG:
1985 cbSize =
sizeof(
HKL);
1988#if(WINVER >= 0x0600)
1989 case SPI_GETAUDIODESCRIPTION:
1990 cbSize =
sizeof(AUDIODESCRIPTION);
1995 cbSize = 3 *
sizeof(
INT);
2004 case SPI_SETNONCLIENTMETRICS:
2005 cbSize =
sizeof(NONCLIENTMETRICSW);
2009 case SPI_SETMINIMIZEDMETRICS:
2014 case SPI_SETICONMETRICS:
2015 cbSize =
sizeof(ICONMETRICSW);
2019 case SPI_SETWORKAREA:
2020 cbSize =
sizeof(
RECTL);
2049 case SPI_SETSERIALKEYS:
2059 case SPI_SETHIGHCONTRAST:
2064 case SPI_SETANIMATION:
2069 case SPI_SETDEFAULTINPUTLANG:
2070 cbSize =
sizeof(
HKL);
2074 case SPI_SETMOUSESPEED:
2075 cbSize =
sizeof(
INT);
2126 ERR(
"UserSystemParametersInfo called without active window station.\n");
2138 ulResult =
SpiGetSet(uiAction, uiParam, pvParam, fWinIni);
2176 TRACE(
"Enter NtUserSystemParametersInfo(%u)\n", uiAction);
2186 TRACE(
"Leave NtUserSystemParametersInfo, returning %d\n", bResult);
@ UPM_ACTIVEWINDOWTRACKING
@ UPM_LISTBOXSMOOTHSCROLLING
#define SPI_GETWHEELSCROLLCHARS
#define DBG_DEFAULT_CHANNEL(ch)
#define NT_SUCCESS(StatCode)
#define ERROR_INVALID_PARAMETER
#define ERROR_ACCESS_DENIED
VOID NTAPI ProbeForRead(IN CONST VOID *Address, IN SIZE_T Length, IN ULONG Alignment)
VOID NTAPI ProbeForWrite(IN PVOID Address, IN SIZE_T Length, IN ULONG Alignment)
#define KeRosDumpStackFrames(Frames, Count)
GLsizei GLenum const GLvoid GLuint GLsizei GLfloat * metrics
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
_CRTIMP wchar_t *__cdecl _itow(_In_ int _Value, _Pre_notnull_ _Post_z_ wchar_t *_Dest, _In_ int _Radix)
_Check_return_ _CRTIMP int __cdecl _wtoi(_In_z_ const wchar_t *_Str)
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
#define PUSIF_COMBOBOXANIMATION
#define PUSIF_KEYBOARDCUES
BOOL NTAPI NtUserRedrawWindow(HWND hWnd, CONST RECT *lprcUpdate, HRGN hrgnUpdate, UINT flags)
#define PUSIF_LISTBOXSMOOTHSCROLLING
#define EXCEPTION_EXECUTE_HANDLER
#define RtlEqualMemory(dst, src, len)
#define ExFreePoolWithTag(_P, _T)
#define SPI_GETDESKWALLPAPER
unsigned __int3264 UINT_PTR
_In_ HANDLE _In_ DWORD _In_ DWORD _Inout_opt_ LPOVERLAPPED _In_opt_ LPTRANSMIT_FILE_BUFFERS _In_ DWORD dwReserved
__kernel_entry W32KAPI INT APIENTRY NtGdiGetDeviceCaps(_In_ HDC hdc, _In_ INT i)
#define GDI_OBJ_HMGR_POWNED
#define GDI_OBJ_HMGR_PUBLIC
PVOID NTAPI PsGetCurrentProcessWin32Process(VOID)
BOOLEAN FASTCALL co_WinPosSetWindowPos(PWND Window, HWND WndInsertAfter, INT x, INT y, INT cx, INT cy, UINT flags)
VOID FASTCALL UserLeave(VOID)
VOID FASTCALL UserEnterExclusive(VOID)
static __inline VOID UserDerefObjectCo(PVOID obj)
static __inline VOID UserRefObjectCo(PVOID obj, PUSER_REFERENCE_ENTRY UserReferenceEntry)
#define _SEH2_GetExceptionCode()
#define _SEH2_EXCEPT(...)
#define _SEH2_YIELD(__stmt)
struct _WINSTATION_OBJECT * prpwinsta
WALLPAPER_MODE WallpaperMode
TEXTMETRICW tmCaptionFont
UNICODE_STRING ustrWallpaper
DWORD dwForegroundLockTimeout
DWORD dwMouseClickLockTime
ANIMATIONINFO animationinfo
HIGHCONTRASTW highcontrast
WCHAR awcWallpaper[MAX_PATH+1]
ACCESSTIMEOUT accesstimeout
DWORD dwActiveTrackingTimeout
UINT uiFontSmoothingContrast
DWORD dwForegroundFlashCount
CURSORACCELERATION_INFO caiMouse
BOOL bBlockSendInputResets
UINT uiFontSmoothingOrientation
#define RtlCopyMemory(Destination, Source, Length)
#define RtlZeroMemory(Destination, Length)
_In_z_ PCWSTR pwszValueName
PWND FASTCALL UserGetWindowObject(HWND hWnd)
HWND FASTCALL UserGetShellWindow(VOID)
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING _Out_opt_ PUSHORT _Inout_opt_ PUNICODE_STRING Value
VOID FASTCALL SetLastNtError(_In_ NTSTATUS Status)
#define SURFACE_ShareUnlockSurface(pBMObj)
#define SURFACE_ShareLockSurface(hBMObj)
BOOL NTAPI GreSetObjectOwner(HGDIOBJ hobj, ULONG ulOwner)
BOOL NTAPI GreDeleteObject(HGDIOBJ hobj)
HBITMAP NTAPI UserLoadImage(PCWSTR)
BOOL NTAPI W32kDosPathNameToNtPathName(PCWSTR, PUNICODE_STRING)
BOOL FASTCALL RECTL_bIntersectRect(_Out_ RECTL *prclDst, _In_ const RECTL *prcl1, _In_ const RECTL *prcl2)
FORCEINLINE BOOL RECTL_bIsEmptyRect(_In_ const RECTL *prcl)
PWND FASTCALL UserGetDesktopWindow(VOID)
LRESULT FASTCALL co_IntSendMessageTimeout(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam, UINT uFlags, UINT uTimeout, ULONG_PTR *uResult)
BOOL NTAPI InitMetrics(VOID)
DWORD FASTCALL UserGetLanguageToggle(_In_ PCWSTR pszType, _In_ DWORD dwDefaultValue)
PMONITOR NTAPI UserMonitorFromRect(PRECTL pRect, DWORD dwFlags)
PMONITOR NTAPI UserGetPrimaryMonitor(VOID)
static INT SpiLoadInt(PCWSTR pwszKey, PCWSTR pwszValue, INT iValue)
static const WCHAR * VAL_DBLCLKHEIGHT
static const WCHAR * KEY_MDALIGN
static const WCHAR * VAL_CLICKLOCKTIME
static const WCHAR * KEY_DESKTOP
static UINT_PTR SpiSet(PVOID pvData, PVOID pvParam, ULONG cbSize, FLONG fl)
static const WCHAR * KEY_MOUSE
static DWORD SpiLoadUserPrefMask(DWORD dValue)
static VOID SpiStoreFont(PCWSTR pwszValue, LOGFONTW *plogfont)
static UINT_PTR SpiSetYesNo(BOOL *pbData, BOOL bValue, PCWSTR pwszKey, PCWSTR pwszValue, FLONG fl)
static const WCHAR * VAL_MOUSETRAILS
static const WCHAR * VAL_FONTSMOOTHING
static const WCHAR * VAL_BEEP
static const WCHAR * VAL_SCRTO
BOOL g_bWindowSnapEnabled
static const WCHAR * VAL_FONTSMOOTHINGCONTRAST
static const WCHAR * VAL_SWAP
static VOID SpiFixupValues(VOID)
static const WCHAR * VAL_USERPREFMASK
static const WCHAR * KEY_SOUND
BOOL g_PaintDesktopVersion
static const WCHAR * VAL_HOVERWIDTH
static const WCHAR * KEY_SHOWSNDS
static const WCHAR * VAL_MOUSE3
static UINT_PTR SpiGetInt(PVOID pvParam, PVOID piValue, FLONG fl)
#define REQ_INTERACTIVE_WINSTA(err)
static const WCHAR * VAL_HOVERTIME
static const WCHAR * VAL_HOVERHEIGHT
static VOID SpiUpdatePerUserSystemParameters(VOID)
static const WCHAR * VAL_DRAGHEIGHT
static INT SpiLoadMouse(PCWSTR pwszValue, INT iValue)
static const WCHAR * VAL_MOUSE2
static const WCHAR * VAL_FONTSMOOTHINGORIENTATION
static UINT_PTR SpiSetDWord(PVOID pvData, INT iValue, PCWSTR pwszKey, PCWSTR pwszValue, FLONG fl)
static UINT_PTR SpiGetUserPref(DWORD dwMask, PVOID pvParam, FLONG fl)
static const WCHAR * KEY_METRIC
static const WCHAR * VAL_DBLCLKWIDTH
static INT SpiLoadDWord(PCWSTR pwszKey, PCWSTR pwszValue, INT iValue)
static const WCHAR * VAL_PAINTDESKVER
static const WCHAR * VAL_ON
static const WCHAR * KEY_SCRREAD
static const WCHAR * VAL_MDALIGN
static VOID SpiStoreMetric(LPCWSTR pwszValue, INT iValue)
static const WCHAR * VAL_DRAG
static const WCHAR * VAL_KBDDELAY
static UINT_PTR SpiGetSet(UINT uiAction, UINT uiParam, PVOID pvParam, FLONG fl)
static UINT_PTR SpiSetBool(BOOL *pbData, INT iValue, PCWSTR pwszKey, PCWSTR pwszValue, FLONG fl)
static const WCHAR * VAL_SCRACT
static const WCHAR * VAL_SCRNSV
static INT SpiLoadMetric(PCWSTR pwszValue, INT iValue)
static const WCHAR * VAL_SNAPDEFBTN
static VOID SpiStoreDWord(PCWSTR pwszKey, PCWSTR pwszValue, DWORD Value)
static const WCHAR * VAL_ICONVSPC
BOOL APIENTRY NtUserUpdatePerUserSystemParameters(DWORD dwReserved, BOOL bEnable)
static DWORD SpiLoadTimeOut(VOID)
static VOID SpiStoreSzInt(PCWSTR pwszKey, PCWSTR pwszValue, INT iValue)
static VOID SpiStoreSz(PCWSTR pwszKey, PCWSTR pwszValue, PCWSTR pwsz)
static BOOL SpiGetSetProbeBuffer(UINT uiAction, UINT uiParam, PVOID pvParam)
static const WCHAR * VAL_SENSITIVITY
static UINT_PTR SpiGetEx(PVOID pvParam, PVOID pvData, ULONG cbSize, FLONG fl)
static BOOL IntIsWindowSnapEnabled(VOID)
static UINT_PTR SpiSetUserPref(DWORD dwMask, PVOID pvValue, FLONG fl)
static const WCHAR * VAL_DBLCLKTIME
static const WCHAR * VAL_SCRLLLINES
static UINT_PTR SpiGet(PVOID pvParam, PVOID pvData, ULONG cbSize, FLONG fl)
static const WCHAR * KEY_KBD
static const WCHAR * KEY_KDBPREF
static const WCHAR * VAL_KBDSPD
static const WCHAR * VAL_ICONSPC
static const WCHAR * VAL_DRAGWIDTH
static const WCHAR * VAL_FONTSMOOTHINGTYPE
static const WCHAR * VAL_GRID
static const WCHAR * VAL_MOUSE1
static BOOL SpiNotifyNCMetricsChanged(VOID)
static const WCHAR * VAL_ITWRAP
static const WCHAR * VAL_CARETRATE
static const WCHAR * VAL_CARETWIDTH
static UINT_PTR SpiSetWallpaper(PVOID pvParam, FLONG fl)
static VOID SpiLoadFont(PLOGFONTW plfOut, LPWSTR pwszValueName, PLOGFONTW plfDefault)
static UINT_PTR SpiMemCopy(PVOID pvDst, PVOID pvSrc, ULONG cbSize, BOOL bProtect)
static const WCHAR * VAL_BORDER
static UINT_PTR SpiSetMetric(PVOID pvData, INT iValue, PCWSTR pwszValue, FLONG fl)
BOOL FASTCALL UserSystemParametersInfo(UINT uiAction, UINT uiParam, PVOID pvParam, UINT fWinIni)
BOOL APIENTRY NtUserSystemParametersInfo(UINT uiAction, UINT uiParam, PVOID pvParam, UINT fWinIni)
static UINT_PTR SpiSetInt(PVOID pvData, INT iValue, PCWSTR pwszKey, PCWSTR pwszValue, FLONG fl)
HWND *FASTCALL IntWinListChildren(PWND Window)
_In_ HCRYPTHASH _In_ BOOL _In_ DWORD _Inout_updates_bytes_to_ pdwDataLen BYTE * pbData
ENGAPI VOID APIENTRY EngSetLastError(_In_ ULONG iError)
_In_ ULONG _In_opt_ PVOID pvData
#define ERROR_REQUIRES_INTERACTIVE_WINDOWSTATION
_In_ DWORD _In_ DWORD cbBufSize
#define SPI_SETSTICKYKEYS
#define SPI_GETFILTERKEYS
#define SPI_GETACCESSTIMEOUT
#define SPI_GETSHOWSOUNDS
struct tagHIGHCONTRASTW * LPHIGHCONTRASTW
#define SPI_SETMENUDROPALIGNMENT
#define SPI_SETDESKWALLPAPER
#define SPI_GETTOGGLEKEYS
#define SPI_SETFASTTASKSWITCH
#define SPI_ICONVERTICALSPACING
#define SPI_SETDOUBLECLKWIDTH
#define SPI_SETACCESSTIMEOUT
#define SPI_GETGRIDGRANULARITY
#define SPI_SETSCREENSAVEACTIVE
struct tagSTICKYKEYS STICKYKEYS
#define SPI_SETDOUBLECLKHEIGHT
struct tagMOUSEKEYS MOUSEKEYS
#define SPI_GETFASTTASKSWITCH
struct tagFILTERKEYS FILTERKEYS
#define SPI_GETICONTITLELOGFONT
struct tagFILTERKEYS * LPFILTERKEYS
#define SPI_SETFILTERKEYS
struct tagACCESSTIMEOUT * LPACCESSTIMEOUT
struct tagSOUNDSENTRYW SOUNDSENTRYW
#define SPI_SETDESKPATTERN
#define SPI_SETKEYBOARDSPEED
#define SPIF_UPDATEINIFILE
struct tagSTICKYKEYS * LPSTICKYKEYS
#define SPI_SETICONTITLELOGFONT
#define SPI_SETTOGGLEKEYS
struct tagMINIMIZEDMETRICS MINIMIZEDMETRICS
#define SPI_GETKEYBOARDSPEED
#define SPI_GETSTICKYKEYS
struct tagTOGGLEKEYS * LPTOGGLEKEYS
#define SPI_SETDOUBLECLICKTIME
struct tagHIGHCONTRASTW HIGHCONTRASTW
#define SPI_GETICONTITLEWRAP
#define SPI_SETMOUSEBUTTONSWAP
struct tagSOUNDSENTRYW * LPSOUNDSENTRYW
struct tagACCESSTIMEOUT ACCESSTIMEOUT
#define SPI_ICONHORIZONTALSPACING
struct tagMOUSEKEYS * LPMOUSEKEYS
struct tagMINIMIZEDMETRICS * LPMINIMIZEDMETRICS
#define SPI_GETKEYBOARDDELAY
#define SPI_SETICONTITLEWRAP
#define SPI_SETSOUNDSENTRY
#define SPI_SETKEYBOARDDELAY
#define SPI_GETSOUNDSENTRY
SERIALKEYSA * LPSERIALKEYS
#define SPI_SETSCREENSAVETIMEOUT
#define SPI_SETSHOWSOUNDS
#define SPI_SETGRIDGRANULARITY
#define SPI_GETSCREENSAVETIMEOUT
struct tagANIMATIONINFO ANIMATIONINFO
struct tagTOGGLEKEYS TOGGLEKEYS
#define SPI_GETSCREENSAVEACTIVE
#define SPI_GETMENUDROPALIGNMENT
_At_(*)(_In_ PWSK_CLIENT Client, _In_opt_ PUNICODE_STRING NodeName, _In_opt_ PUNICODE_STRING ServiceName, _In_opt_ ULONG NameSpace, _In_opt_ GUID *Provider, _In_opt_ PADDRINFOEXW Hints, _Outptr_ PADDRINFOEXW *Result, _In_opt_ PEPROCESS OwningProcess, _In_opt_ PETHREAD OwningThread, _Inout_ PIRP Irp Result)(Mem)) NTSTATUS(WSKAPI *PFN_WSK_GET_ADDRESS_INFO
#define SPI_SETWHEELSCROLLLINES