143 for(
i = 0;
i < 1000;
i++)
data[
i] = 0xdeadbeef;
150 for(
i = 0;
i < 1000;
i++)
data[
i] = 0xbeefdead;
160 for(
i = 0;
i < 1000;
i++)
data[
i] = 0xdeadbeef;
167 for(
i = 0;
i < 1000;
i++)
data[
i] = 0xbeefdead;
174 for(
i = 0;
i < 1000;
i++)
data[
i] = 0xdeadbeef;
181 for(
i = 0;
i < 1000;
i++)
data[
i] = 0xbeefdead;
188 for(
i = 0;
i < 1000;
i++)
data[
i] = 0xdeadbeef;
195 for(
i = 0;
i < 1000;
i++)
data[
i] = 0xbeefdead;
202 for(
i = 0;
i < 1000;
i++)
data[
i] = 0xdeadbeef;
209 for(
i = 0;
i < 1000;
i++)
data[
i] = 0xbeefdead;
216 for(
i = 0;
i < 1000;
i++)
data[
i] = 0xdeadbeef;
223 for(
i = 0;
i < 1000;
i++)
data[
i] = 0xbeefdead;
230 for(
i = 0;
i < 1000;
i++)
data[
i] = 0xdeadbeef;
237 for(
i = 0;
i < 1000;
i++)
data[
i] = 0xbeefdead;
244 for(
i = 0;
i < 1000;
i++)
data[
i] = 0xdeadbeef;
251 for(
i = 0;
i < 1000;
i++)
data[
i] = 0xbeefdead;
258 for(
i = 0;
i < 1000;
i++)
data[
i] = 0xdeadbeef;
265 for(
i = 0;
i < 1000;
i++)
data[
i] = 0xbeefdead;
272 for(
i = 0;
i < 1000;
i++)
data[
i] = 0xdeadbeef;
279 for(
i = 0;
i < 1000;
i++)
data[
i] = 0xbeefdead;
286 for(
i = 0;
i < 1000;
i++)
data[
i] = 0xdeadbeef;
293 for(
i = 0;
i < 1000;
i++)
data[
i] = 0xbeefdead;
300 for(
i = 0;
i < 1000;
i++)
data[
i] = 0xdeadbeef;
307 for(
i = 0;
i < 1000;
i++)
data[
i] = 0xbeefdead;
318 for(
i = 0;
i < 1000;
i++)
data[
i] = 0xdeadbeef;
326 HWINSTA hwinsta, hwinstaOld;
334 printf(
"hwinstaOld=%p, hwinsta=%p\n", hwinstaOld, hwinsta);
400 cbSize =
sizeof(szReg);
402 ok(
_wcsicmp(szReg,
L"1") == 0,
"Value=%S\n", pwszVal);
409 BOOL bOrig, bTemp = 0;
410 DWORD dwUserPref, dwUserPrefOrg;
415 cbSize =
sizeof(dwUserPrefOrg);
422 cbSize =
sizeof(dwUserPref);
424 TEST((dwUserPref & dwPrefMask) == 0);
425 TEST((dwUserPref & (~dwPrefMask)) == (dwUserPrefOrg & (~dwPrefMask)));
431 cbSize =
sizeof(dwUserPref);
433 TEST((dwUserPref & dwPrefMask) == 0);
434 TEST((dwUserPref & (~dwPrefMask)) == (dwUserPrefOrg & (~dwPrefMask)));
440 cbSize =
sizeof(dwUserPref);
442 TEST((dwUserPref & dwPrefMask) == 0);
443 TEST((dwUserPref & (~dwPrefMask)) == (dwUserPrefOrg & (~dwPrefMask)));
449 cbSize =
sizeof(dwUserPref);
451 TEST((dwUserPref & dwPrefMask) == dwPrefMask);
452 TEST((dwUserPref & (~dwPrefMask)) == (dwUserPrefOrg & (~dwPrefMask)));
466 BOOL bOrig, bTemp = 0;
477 cbSize =
sizeof(szReg);
485 cbSize =
sizeof(szReg);
493 cbSize =
sizeof(szReg);
504 INT aiOrig[3], aiTemp[3];
516 aiTemp[0] = aiOrig[0] + 1;
517 aiTemp[1] = aiOrig[1] - 1;
518 aiTemp[2] = aiOrig[2] + 2;
520 aiTemp[0] = aiTemp[1] = aiTemp[2] = 0;
526 TEST(aiTemp[0] == aiOrig[0] + 1);
527 TEST(aiTemp[1] == aiOrig[1] - 1);
528 TEST(aiTemp[2] == aiOrig[2] + 2);
539 INT iOrig, iTemp = 0;
612 szNew[0] = 0; szNew[1] = 0; szNew[2] = 0;
645 BOOL bOrig, bTemp = 0;
656 cbSize =
sizeof(szReg);
664 cbSize =
sizeof(szReg);
672 cbSize =
sizeof(szReg);
680 cbSize =
sizeof(szReg);
706 buf.dwRedzone = 0xdeadbeef;
710 TEST(
buf.lf.lfFaceName[0] != 0);
712 TEST(
buf.dwRedzone == 0xdeadbeef);
717 buf.dwRedzone = 0xdeadbeef;
721 TEST(
buf.lf.lfFaceName[0] != 0);
723 TEST(
buf.dwRedzone == 0xdeadbeef);
749 NONCLIENTMETRICSW origMetrics;
751 metrics.cbSize =
sizeof(NONCLIENTMETRICSW);
757 metrics.cbSize =
sizeof(NONCLIENTMETRICSW) + 10;
760 ok(
metrics.cbSize ==
sizeof(NONCLIENTMETRICSW),
"Expected size: %lu, got %lu\n", (
ULONG)
sizeof(NONCLIENTMETRICSW), (
ULONG)
metrics.cbSize);
789 ICONMETRICSW origMetrics;
791 metrics.cbSize =
sizeof(ICONMETRICSW);
797 metrics.cbSize =
sizeof(ICONMETRICSW) + 10;
800 ok(
metrics.cbSize ==
sizeof(ICONMETRICSW),
"Expected size: %lu, got %lu\n", (
ULONG)
sizeof(ICONMETRICSW), (
ULONG)
metrics.cbSize);
829 rc = rcOrig; rc.
left = -1;
831 rc = rcOrig; rc.
top = -1;
833 rc = rcOrig; rc.
top = 10; rc.
bottom = 11;
835 rc = rcOrig; rc.
top = 10; rc.
bottom = 10;
839 rc = rcOrig; rc.
left = 10; rc.
right = 11;
841 rc = rcOrig; rc.
left = 10; rc.
right = 10;
1016 BOOL bOrig, bTemp = 0;
1017 DWORD dwUserPrefMask;
1027 cbSize =
sizeof(dwUserPrefMask);
1035 cbSize =
sizeof(dwUserPrefMask);
void Test_NtUserSystemParametersInfo_Winsta(void)
static const WCHAR * KEY_DESKTOP
void Test_SPI_SETSHOWSOUNDS(void)
static const WCHAR * KEY_MOUSE
void Test_SPI_SETBORDER(void)
static const WCHAR * VAL_BEEP
void Test_SPI_SETSTICKYKEYS(void)
void Test_SPI_SETTOGGLEKEYS(void)
static const WCHAR * VAL_SWAP
void Test_MetricKey(PCWSTR pwszVal, INT iVal)
void Test_SPI_SETHIGHCONTRAST(void)
static const WCHAR * KEY_SOUND
void Test_SPI_SETICONTITLELOGFONT(void)
void Test_SPI_SETDESKWALLPAPER(void)
@ UPM_ACTIVEWINDOWTRACKING
@ UPM_LISTBOXSMOOTHSCROLLING
LONG QueryUserRegValueW(PCWSTR pszSubKey, PCWSTR pszValueName, PVOID pData, LPDWORD cbSize, LPDWORD pType)
void Test_SPI_SETWORKAREA(void)
static const WCHAR * KEY_METRIC
void Test_SPI_SETBEEP(void)
void Test_SPI_SETPENWINDOWS(void)
void Test_NtUserSystemParametersInfo_fWinIni(void)
void Test_SPI_SETSOUNDSENTRY(void)
void Test_SPI_SETICONMETRICS(void)
void Test_SPI_SETMINIMIZEDMETRICS(void)
void Test_SPI_SETNONCLIENTMETRICS(void)
void Test_SPI_SETMOUSECLICKLOCK(void)
void Test_SPI_SETMENUANIMATION(void)
Test_SPI_SETANIMATION();.
void Test_NtUserSystemParametersInfo_Params(void)
void Test_SPI_SETKEYBOARDPREF(void)
void Test_SPI_SETACCESSTIMEOUT(void)
void Test_SPI_SETKEYBOARDCUES(void)
void Test_SPI_SETMOUSE(void)
void Test_SPI_SETSERIALKEYS(void)
void Test_SPI_SETDRAGFULLWINDOWS(void)
void Test_SPI_SETFASTTASKSWITCH(void)
static const WCHAR * VAL_PREFMASK
void Test_UserPref(UINT uiGet, UINT uiSet, DWORD dwPrefMask)
void Test_SPI_SETMOUSEKEYS(void)
void Test_SPI_SETFILTERKEYS(void)
void Test_SPI_SETMOUSEBUTTONSWAP(void)
#define RegCloseKey(hKey)
LONG WINAPI RegOpenKeyExW(HKEY hKey, LPCWSTR lpSubKey, DWORD ulOptions, REGSAM samDesired, PHKEY phkResult)
LONG WINAPI RegQueryValueExW(_In_ HKEY hkeyorg, _In_ LPCWSTR name, _In_ LPDWORD reserved, _In_ LPDWORD type, _In_ LPBYTE data, _In_ LPDWORD count)
#define ERROR_INVALID_PARAMETER
#define ERROR_ACCESS_DENIED
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
GLsizei GLenum const GLvoid GLuint GLsizei GLfloat * metrics
GLenum GLuint GLenum GLsizei const GLchar * buf
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
BOOL NTAPI NtUserSystemParametersInfo(UINT uiAction, UINT uiParam, PVOID pvParam, UINT fWinIni)
#define ERROR_FILE_NOT_FOUND
#define SPI_GETDESKWALLPAPER
NTSYSAPI VOID NTAPI RtlInitUnicodeString(PUNICODE_STRING DestinationString, PCWSTR SourceString)
_Check_return_ _CRTIMP int __cdecl _wcsicmp(_In_z_ const wchar_t *_Str1, _In_z_ const wchar_t *_Str2)
_Check_return_ _CRTIMP int __cdecl wcscmp(_In_z_ const wchar_t *_Str1, _In_z_ const wchar_t *_Str2)
TW_UINT32 TW_UINT16 TW_UINT16 TW_MEMREF pData
DWORD WINAPI GetLastError(void)
HWINSTA WINAPI GetProcessWindowStation(void)
#define ERROR_REQUIRES_INTERACTIVE_WINDOWSTATION
#define HKEY_CURRENT_USER
#define SPI_SETSTICKYKEYS
#define SPI_GETACCESSTIMEOUT
#define SM_CYVIRTUALSCREEN
LRESULT WINAPI DefWindowProcA(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
#define SPI_SETDESKWALLPAPER
#define CreateWindowA(a, b, c, d, e, f, g, h, i, j, k)
#define SPI_SETFASTTASKSWITCH
#define SPI_SETACCESSTIMEOUT
struct tagSTICKYKEYS STICKYKEYS
#define SPI_GETICONTITLELOGFONT
BOOL WINAPI SetProcessWindowStation(_In_ HWINSTA)
#define SM_CXVIRTUALSCREEN
#define SPI_SETKEYBOARDSPEED
#define SPIF_UPDATEINIFILE
ATOM WINAPI RegisterClassA(_In_ CONST WNDCLASSA *)
struct tagMINIMIZEDMETRICS MINIMIZEDMETRICS
#define SPI_GETKEYBOARDSPEED
#define SPI_GETSTICKYKEYS
#define SPI_SETMOUSEBUTTONSWAP
BOOL WINAPI SystemParametersInfoA(_In_ UINT uiAction, _In_ UINT uiParam, _Inout_opt_ PVOID pvParam, _In_ UINT fWinIni)
struct tagACCESSTIMEOUT ACCESSTIMEOUT
#define SPI_ICONHORIZONTALSPACING
#define CreateWindowStation
BOOL WINAPI DestroyWindow(_In_ HWND)
#define SPI_SETSCREENSAVETIMEOUT
int WINAPI GetSystemMetrics(_In_ int)
#define SPI_GETSCREENSAVETIMEOUT