ReactOS 0.4.16-dev-338-g34e76ad
|
#include <assert.h>
#include <stdlib.h>
#include <stdarg.h>
#include <stdio.h>
#include "wine/test.h"
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
#include "winreg.h"
#include "winuser.h"
#include "winnls.h"
Go to the source code of this file.
Classes | |
struct | LOGFONT16 |
Typedefs | |
typedef struct LOGFONT16 * | LPLOGFONT16 |
Variables | |
static | LPDEVMODEA |
static | HWND |
static | DWORD |
static | LPVOID |
static | UINT |
static | BOOL |
static BOOL | strict |
static int | dpi |
static int | real_dpi |
static HWND | ghTestWnd |
static int | change_counter |
static int | change_setworkarea_param |
static int | change_iconverticalspacing_param |
static int | change_last_param |
static int | last_bpp |
static BOOL | displaychange_ok = FALSE |
static BOOL | displaychange_test_active = FALSE |
static HANDLE | displaychange_sem = 0 |
static const char * | setmouse_valuenames [3] |
static UINT | smcxsmsize = 999999999 |
static int | gsm_error_ctr |
#define eq | ( | received, | |
expected, | |||
label, | |||
type | |||
) | ok((received) == (expected), "%s: got " type " instead of " type "\n", (label),(received),(expected)) |
Definition at line 61 of file sysparams.c.
Definition at line 2648 of file sysparams.c.
Definition at line 2655 of file sysparams.c.
Definition at line 2663 of file sysparams.c.
#define SPI_CAPTIONFONT_VALNAME "CaptionFont" |
Definition at line 79 of file sysparams.c.
#define SPI_CAPTIONHEIGHT_VALNAME "CaptionHeight" |
Definition at line 78 of file sysparams.c.
#define SPI_CAPTIONWIDTH_VALNAME "CaptionWidth" |
Definition at line 77 of file sysparams.c.
#define SPI_GETDESKWALLPAPER 0x0073 |
Definition at line 34 of file sysparams.c.
#define SPI_ICONHORIZONTALSPACING_REGKEY "Control Panel\\Desktop\\WindowMetrics" |
Definition at line 91 of file sysparams.c.
#define SPI_ICONHORIZONTALSPACING_REGKEY2 "Control Panel\\Desktop" |
Definition at line 92 of file sysparams.c.
#define SPI_ICONHORIZONTALSPACING_VALNAME "IconSpacing" |
Definition at line 93 of file sysparams.c.
#define SPI_ICONVERTICALSPACING_REGKEY "Control Panel\\Desktop\\WindowMetrics" |
Definition at line 94 of file sysparams.c.
#define SPI_ICONVERTICALSPACING_REGKEY2 "Control Panel\\Desktop" |
Definition at line 95 of file sysparams.c.
#define SPI_ICONVERTICALSPACING_VALNAME "IconVerticalSpacing" |
Definition at line 96 of file sysparams.c.
#define SPI_MENUFONT_VALNAME "MenuFont" |
Definition at line 85 of file sysparams.c.
#define SPI_MENUHEIGHT_VALNAME "MenuHeight" |
Definition at line 84 of file sysparams.c.
#define SPI_MENUWIDTH_VALNAME "MenuWidth" |
Definition at line 83 of file sysparams.c.
#define SPI_MESSAGEFONT_VALNAME "MessageFont" |
Definition at line 87 of file sysparams.c.
#define SPI_METRIC_REGKEY "Control Panel\\Desktop\\WindowMetrics" |
Definition at line 74 of file sysparams.c.
#define SPI_MINARRANGE_VALNAME "MinArrange" |
Definition at line 101 of file sysparams.c.
#define SPI_MINHORZGAP_VALNAME "MinHorzGap" |
Definition at line 99 of file sysparams.c.
#define SPI_MINIMIZEDMETRICS_REGKEY "Control Panel\\Desktop\\WindowMetrics" |
Definition at line 97 of file sysparams.c.
#define SPI_MINVERTGAP_VALNAME "MinVertGap" |
Definition at line 100 of file sysparams.c.
#define SPI_MINWIDTH_VALNAME "MinWidth" |
Definition at line 98 of file sysparams.c.
#define SPI_SCROLLHEIGHT_VALNAME "ScrollHeight" |
Definition at line 76 of file sysparams.c.
#define SPI_SCROLLWIDTH_VALNAME "ScrollWidth" |
Definition at line 75 of file sysparams.c.
#define SPI_SETBEEP_REGKEY "Control Panel\\Sound" |
Definition at line 65 of file sysparams.c.
#define SPI_SETBEEP_VALNAME "Beep" |
Definition at line 66 of file sysparams.c.
#define SPI_SETBORDER_REGKEY "Control Panel\\Desktop\\WindowMetrics" |
Definition at line 71 of file sysparams.c.
#define SPI_SETBORDER_REGKEY2 "Control Panel\\Desktop" |
Definition at line 72 of file sysparams.c.
#define SPI_SETBORDER_VALNAME "BorderWidth" |
Definition at line 73 of file sysparams.c.
#define SPI_SETDESKWALLPAPER_REGKEY "Control Panel\\Desktop" |
Definition at line 163 of file sysparams.c.
#define SPI_SETDESKWALLPAPER_VALNAME "Wallpaper" |
Definition at line 164 of file sysparams.c.
#define SPI_SETDOUBLECLICKTIME_REGKEY "Control Panel\\Mouse" |
Definition at line 122 of file sysparams.c.
#define SPI_SETDOUBLECLICKTIME_VALNAME "DoubleClickSpeed" |
Definition at line 123 of file sysparams.c.
#define SPI_SETDOUBLECLKHEIGHT_REGKEY1 "Control Panel\\Mouse" |
Definition at line 119 of file sysparams.c.
#define SPI_SETDOUBLECLKHEIGHT_REGKEY2 "Control Panel\\Desktop" |
Definition at line 120 of file sysparams.c.
#define SPI_SETDOUBLECLKHEIGHT_VALNAME "DoubleClickHeight" |
Definition at line 121 of file sysparams.c.
#define SPI_SETDOUBLECLKWIDTH_REGKEY1 "Control Panel\\Mouse" |
Definition at line 116 of file sysparams.c.
#define SPI_SETDOUBLECLKWIDTH_REGKEY2 "Control Panel\\Desktop" |
Definition at line 117 of file sysparams.c.
#define SPI_SETDOUBLECLKWIDTH_VALNAME "DoubleClickWidth" |
Definition at line 118 of file sysparams.c.
#define SPI_SETDRAGFULLWINDOWS_REGKEY "Control Panel\\Desktop" |
Definition at line 147 of file sysparams.c.
#define SPI_SETDRAGFULLWINDOWS_VALNAME "DragFullWindows" |
Definition at line 148 of file sysparams.c.
#define SPI_SETFONTSMOOTHING_REGKEY "Control Panel\\Desktop" |
Definition at line 138 of file sysparams.c.
#define SPI_SETFONTSMOOTHING_VALNAME "FontSmoothing" |
Definition at line 139 of file sysparams.c.
#define SPI_SETFONTSMOOTHINGCONTRAST_VALNAME "FontSmoothingGamma" |
Definition at line 141 of file sysparams.c.
#define SPI_SETFONTSMOOTHINGORIENTATION_VALNAME "FontSmoothingOrientation" |
Definition at line 142 of file sysparams.c.
#define SPI_SETFONTSMOOTHINGTYPE_VALNAME "FontSmoothingType" |
Definition at line 140 of file sysparams.c.
#define SPI_SETGRIDGRANULARITY_REGKEY "Control Panel\\Desktop" |
Definition at line 106 of file sysparams.c.
#define SPI_SETGRIDGRANULARITY_VALNAME "GridGranularity" |
Definition at line 107 of file sysparams.c.
#define SPI_SETICONTITLEWRAP_REGKEY1 "Control Panel\\Desktop\\WindowMetrics" |
Definition at line 110 of file sysparams.c.
#define SPI_SETICONTITLEWRAP_REGKEY2 "Control Panel\\Desktop" |
Definition at line 111 of file sysparams.c.
#define SPI_SETICONTITLEWRAP_VALNAME "IconTitleWrap" |
Definition at line 112 of file sysparams.c.
#define SPI_SETKEYBOARDDELAY_REGKEY "Control Panel\\Keyboard" |
Definition at line 108 of file sysparams.c.
#define SPI_SETKEYBOARDDELAY_VALNAME "KeyboardDelay" |
Definition at line 109 of file sysparams.c.
#define SPI_SETKEYBOARDPREF_REGKEY "Control Panel\\Accessibility\\Keyboard Preference" |
Definition at line 130 of file sysparams.c.
#define SPI_SETKEYBOARDPREF_REGKEY_LEGACY "Control Panel\\Accessibility" |
Definition at line 132 of file sysparams.c.
#define SPI_SETKEYBOARDPREF_VALNAME "On" |
Definition at line 131 of file sysparams.c.
#define SPI_SETKEYBOARDPREF_VALNAME_LEGACY "Keyboard Preference" |
Definition at line 133 of file sysparams.c.
#define SPI_SETKEYBOARDSPEED_REGKEY "Control Panel\\Keyboard" |
Definition at line 89 of file sysparams.c.
#define SPI_SETKEYBOARDSPEED_VALNAME "KeyboardSpeed" |
Definition at line 90 of file sysparams.c.
#define SPI_SETLOWPOWERACTIVE_REGKEY "Control Panel\\Desktop" |
Definition at line 143 of file sysparams.c.
#define SPI_SETLOWPOWERACTIVE_VALNAME "LowPowerActive" |
Definition at line 144 of file sysparams.c.
#define SPI_SETMENUDROPALIGNMENT_REGKEY1 "Software\\Microsoft\\Windows NT\\CurrentVersion\\Windows" |
Definition at line 113 of file sysparams.c.
#define SPI_SETMENUDROPALIGNMENT_REGKEY2 "Control Panel\\Desktop" |
Definition at line 114 of file sysparams.c.
#define SPI_SETMENUDROPALIGNMENT_VALNAME "MenuDropAlignment" |
Definition at line 115 of file sysparams.c.
#define SPI_SETMENUSHOWDELAY_REGKEY "Control Panel\\Desktop" |
Definition at line 161 of file sysparams.c.
#define SPI_SETMENUSHOWDELAY_VALNAME "MenuShowDelay" |
Definition at line 162 of file sysparams.c.
#define SPI_SETMOUSE_REGKEY "Control Panel\\Mouse" |
Definition at line 67 of file sysparams.c.
#define SPI_SETMOUSE_VALNAME1 "MouseThreshold1" |
Definition at line 68 of file sysparams.c.
#define SPI_SETMOUSE_VALNAME2 "MouseThreshold2" |
Definition at line 69 of file sysparams.c.
#define SPI_SETMOUSE_VALNAME3 "MouseSpeed" |
Definition at line 70 of file sysparams.c.
#define SPI_SETMOUSEBUTTONSWAP_REGKEY "Control Panel\\Mouse" |
Definition at line 124 of file sysparams.c.
#define SPI_SETMOUSEBUTTONSWAP_VALNAME "SwapMouseButtons" |
Definition at line 125 of file sysparams.c.
#define SPI_SETMOUSEHOVERHEIGHT_REGKEY "Control Panel\\Mouse" |
Definition at line 153 of file sysparams.c.
#define SPI_SETMOUSEHOVERHEIGHT_VALNAME "MouseHoverHeight" |
Definition at line 154 of file sysparams.c.
#define SPI_SETMOUSEHOVERTIME_REGKEY "Control Panel\\Mouse" |
Definition at line 155 of file sysparams.c.
#define SPI_SETMOUSEHOVERTIME_VALNAME "MouseHoverTime" |
Definition at line 156 of file sysparams.c.
#define SPI_SETMOUSEHOVERWIDTH_REGKEY "Control Panel\\Mouse" |
Definition at line 151 of file sysparams.c.
#define SPI_SETMOUSEHOVERWIDTH_VALNAME "MouseHoverWidth" |
Definition at line 152 of file sysparams.c.
#define SPI_SETMOUSESCROLLCHARS_REGKEY "Control Panel\\Desktop" |
Definition at line 157 of file sysparams.c.
#define SPI_SETMOUSESCROLLCHARS_VALNAME "WheelScrollChars" |
Definition at line 158 of file sysparams.c.
#define SPI_SETMOUSESCROLLLINES_REGKEY "Control Panel\\Desktop" |
Definition at line 159 of file sysparams.c.
#define SPI_SETMOUSESCROLLLINES_VALNAME "WheelScrollLines" |
Definition at line 160 of file sysparams.c.
#define SPI_SETPOWEROFFACTIVE_REGKEY "Control Panel\\Desktop" |
Definition at line 145 of file sysparams.c.
#define SPI_SETPOWEROFFACTIVE_VALNAME "PowerOffActive" |
Definition at line 146 of file sysparams.c.
#define SPI_SETSCREENREADER_REGKEY "Control Panel\\Accessibility\\Blind Access" |
Definition at line 134 of file sysparams.c.
#define SPI_SETSCREENREADER_REGKEY_LEGACY "Control Panel\\Accessibility" |
Definition at line 136 of file sysparams.c.
#define SPI_SETSCREENREADER_VALNAME "On" |
Definition at line 135 of file sysparams.c.
#define SPI_SETSCREENREADER_VALNAME_LEGACY "Blind Access" |
Definition at line 137 of file sysparams.c.
#define SPI_SETSCREENSAVEACTIVE_REGKEY "Control Panel\\Desktop" |
Definition at line 104 of file sysparams.c.
#define SPI_SETSCREENSAVEACTIVE_VALNAME "ScreenSaveActive" |
Definition at line 105 of file sysparams.c.
#define SPI_SETSCREENSAVETIMEOUT_REGKEY "Control Panel\\Desktop" |
Definition at line 102 of file sysparams.c.
#define SPI_SETSCREENSAVETIMEOUT_VALNAME "ScreenSaveTimeOut" |
Definition at line 103 of file sysparams.c.
#define SPI_SETSHOWSOUNDS_REGKEY "Control Panel\\Accessibility\\ShowSounds" |
Definition at line 128 of file sysparams.c.
#define SPI_SETSHOWSOUNDS_VALNAME "On" |
Definition at line 129 of file sysparams.c.
#define SPI_SETSNAPTODEFBUTTON_REGKEY "Control Panel\\Mouse" |
Definition at line 149 of file sysparams.c.
#define SPI_SETSNAPTODEFBUTTON_VALNAME "SnapToDefaultButton" |
Definition at line 150 of file sysparams.c.
#define SPI_SETWORKAREA_REGKEY "Control Panel\\Desktop" |
Definition at line 126 of file sysparams.c.
#define SPI_SETWORKAREA_VALNAME "WINE_WorkArea" |
Definition at line 127 of file sysparams.c.
#define SPI_SMCAPTIONFONT_VALNAME "SmCaptionFont" |
Definition at line 82 of file sysparams.c.
#define SPI_SMCAPTIONHEIGHT_VALNAME "SmCaptionHeight" |
Definition at line 81 of file sysparams.c.
#define SPI_SMCAPTIONWIDTH_VALNAME "SmCaptionWidth" |
Definition at line 80 of file sysparams.c.
#define SPI_STATUSFONT_VALNAME "StatusFont" |
Definition at line 86 of file sysparams.c.
#define TEST_NONCLIENTMETRICS_REG | ( | ncm | ) |
Definition at line 1450 of file sysparams.c.
Definition at line 1439 of file sysparams.c.
#define test_reg_key | ( | subKey, | |
valName, | |||
testValue | |||
) | _test_reg_key( subKey, NULL, valName, NULL, testValue, REG_SZ, FALSE ) |
Definition at line 461 of file sysparams.c.
#define test_reg_key_dword | ( | subKey, | |
valName, | |||
testValue | |||
) | _test_reg_key( subKey, NULL, valName, NULL, testValue, REG_DWORD, FALSE ) |
Definition at line 471 of file sysparams.c.
#define test_reg_key_ex | ( | subKey1, | |
subKey2, | |||
valName, | |||
testValue | |||
) | _test_reg_key( subKey1, subKey2, valName, NULL, testValue, REG_SZ, FALSE ) |
Definition at line 465 of file sysparams.c.
#define test_reg_key_ex2 | ( | subKey1, | |
subKey2, | |||
valName1, | |||
valName2, | |||
testValue | |||
) | _test_reg_key( subKey1, subKey2, valName1, valName2, testValue, REG_SZ, FALSE ) |
Definition at line 467 of file sysparams.c.
#define test_reg_key_ex2_optional | ( | subKey1, | |
subKey2, | |||
valName1, | |||
valName2, | |||
testValue | |||
) | _test_reg_key( subKey1, subKey2, valName1, valName2, testValue, REG_SZ, TRUE ) |
Definition at line 469 of file sysparams.c.
#define test_reg_key_optional | ( | subKey, | |
valName, | |||
testValue | |||
) | _test_reg_key( subKey, NULL, valName, NULL, testValue, REG_SZ, TRUE ) |
Definition at line 463 of file sysparams.c.
Definition at line 1426 of file sysparams.c.
Definition at line 1432 of file sysparams.c.
#define WINE_CURRENT_USER_REGKEY "Wine" |
Definition at line 167 of file sysparams.c.
typedef struct LOGFONT16 * LPLOGFONT16 |
|
static |
Definition at line 2608 of file sysparams.c.
Referenced by get_text_metr_size().
|
static |
Definition at line 325 of file sysparams.c.
|
static |
Definition at line 2918 of file sysparams.c.
Referenced by test_metrics_for_dpi().
Definition at line 900 of file sysparams.c.
Referenced by test_SPI_ICONHORIZONTALSPACING().
Definition at line 1069 of file sysparams.c.
Referenced by test_SPI_ICONVERTICALSPACING().
|
static |
|
static |
Referenced by dpi_winproc(), get_real_dpi(), test_dpi_context(), test_dpi_mapping(), test_dpi_stock_objects(), and test_dpi_window().
Definition at line 3733 of file sysparams.c.
Referenced by START_TEST(), and test_dpi_window().
|
static |
Definition at line 2690 of file sysparams.c.
Referenced by test_GetSystemMetrics().
Definition at line 200 of file sysparams.c.
Referenced by START_TEST().
|
static |
Definition at line 181 of file sysparams.c.
Referenced by get_real_dpi().
|
static |
Definition at line 2626 of file sysparams.c.
Referenced by test_GetSystemMetrics().
Definition at line 1467 of file sysparams.c.
Referenced by test_SPI_SETNONCLIENTMETRICS().
Definition at line 1479 of file sysparams.c.
Referenced by test_metrics_for_dpi().
Definition at line 2678 of file sysparams.c.
Referenced by test_GetSystemMetrics().
Definition at line 514 of file sysparams.c.
Definition at line 476 of file sysparams.c.
Referenced by dotest_spi_iconhorizontalspacing(), dotest_spi_iconverticalspacing(), test_GetSystemMetrics(), test_setborder(), test_SPI_SETBORDER(), test_SPI_SETICONMETRICS(), test_SPI_SETICONTITLEWRAP(), test_SPI_SETMINIMIZEDMETRICS(), and test_SPI_SETNONCLIENTMETRICS().
|
static |
Definition at line 635 of file sysparams.c.
Referenced by test_SPI_SETMOUSE().
|
static |
Definition at line 3196 of file sysparams.c.
Referenced by test_dpi_mapping().
Definition at line 3188 of file sysparams.c.
Referenced by scale_rect_dpi_aware(), and test_dpi_mapping().
|
static |
Definition at line 3204 of file sysparams.c.
Referenced by test_dpi_mapping().
START_TEST | ( | sysparams | ) |
Definition at line 3892 of file sysparams.c.
|
static |
Definition at line 218 of file sysparams.c.
Referenced by START_TEST().
Definition at line 2550 of file sysparams.c.
Referenced by START_TEST().
Definition at line 279 of file sysparams.c.
Referenced by dotest_spi_iconhorizontalspacing(), dotest_spi_iconverticalspacing(), run_spi_setmouse_test(), test_setborder(), test_SPI_SETBEEP(), test_SPI_SETBORDER(), test_SPI_SETDOUBLECLICKTIME(), test_SPI_SETDOUBLECLKHEIGHT(), test_SPI_SETDOUBLECLKWIDTH(), test_SPI_SETDRAGFULLWINDOWS(), test_SPI_SETFONTSMOOTHING(), test_SPI_SETICONTITLEWRAP(), test_SPI_SETKEYBOARDDELAY(), test_SPI_SETKEYBOARDPREF(), test_SPI_SETKEYBOARDSPEED(), test_SPI_SETLOWPOWERACTIVE(), test_SPI_SETMENUDROPALIGNMENT(), test_SPI_SETMENUSHOWDELAY(), test_SPI_SETMOUSEBUTTONSWAP(), test_SPI_SETMOUSEHOVERHEIGHT(), test_SPI_SETMOUSEHOVERTIME(), test_SPI_SETMOUSEHOVERWIDTH(), test_SPI_SETNONCLIENTMETRICS(), test_SPI_SETPOWEROFFACTIVE(), test_SPI_SETSCREENREADER(), test_SPI_SETSCREENSAVEACTIVE(), test_SPI_SETSCREENSAVETIMEOUT(), test_SPI_SETSHOWSOUNDS(), test_SPI_SETSNAPTODEFBUTTON(), test_SPI_SETWALLPAPER(), test_SPI_SETWHEELSCROLLCHARS(), test_SPI_SETWHEELSCROLLLINES(), and test_SPI_SETWORKAREA().
Definition at line 3510 of file sysparams.c.
Referenced by START_TEST().
Definition at line 3532 of file sysparams.c.
Referenced by START_TEST().
Definition at line 3212 of file sysparams.c.
Referenced by START_TEST().
Definition at line 3138 of file sysparams.c.
Referenced by test_dpi_context().
Definition at line 3750 of file sysparams.c.
Referenced by START_TEST().
Definition at line 3077 of file sysparams.c.
Referenced by START_TEST().
Definition at line 293 of file sysparams.c.
Referenced by dotest_spi_iconhorizontalspacing(), dotest_spi_iconverticalspacing(), run_spi_setmouse_test(), test_setborder(), test_SPI_ICONHORIZONTALSPACING(), test_SPI_ICONVERTICALSPACING(), test_SPI_SETBEEP(), test_SPI_SETBORDER(), test_SPI_SETDOUBLECLICKTIME(), test_SPI_SETDOUBLECLKHEIGHT(), test_SPI_SETDOUBLECLKWIDTH(), test_SPI_SETDRAGFULLWINDOWS(), test_SPI_SETFASTTASKSWITCH(), test_SPI_SETFONTSMOOTHING(), test_SPI_SETICONMETRICS(), test_SPI_SETICONTITLEWRAP(), test_SPI_SETKEYBOARDDELAY(), test_SPI_SETKEYBOARDPREF(), test_SPI_SETKEYBOARDSPEED(), test_SPI_SETLOWPOWERACTIVE(), test_SPI_SETMENUDROPALIGNMENT(), test_SPI_SETMENUSHOWDELAY(), test_SPI_SETMINIMIZEDMETRICS(), test_SPI_SETMOUSE(), test_SPI_SETMOUSEBUTTONSWAP(), test_SPI_SETMOUSEHOVERHEIGHT(), test_SPI_SETMOUSEHOVERTIME(), test_SPI_SETMOUSEHOVERWIDTH(), test_SPI_SETNONCLIENTMETRICS(), test_SPI_SETPOWEROFFACTIVE(), test_SPI_SETSCREENREADER(), test_SPI_SETSCREENSAVEACTIVE(), test_SPI_SETSCREENSAVETIMEOUT(), test_SPI_SETSHOWSOUNDS(), test_SPI_SETSNAPTODEFBUTTON(), test_SPI_SETWALLPAPER(), test_SPI_SETWHEELSCROLLCHARS(), test_SPI_SETWHEELSCROLLLINES(), and test_SPI_SETWORKAREA().
Definition at line 3871 of file sysparams.c.
Referenced by START_TEST().
Definition at line 3117 of file sysparams.c.
Referenced by START_TEST().
Definition at line 2698 of file sysparams.c.