From 35d1902b729ff0fc1d4216e08d147e04afea8e7e Mon Sep 17 00:00:00 2001 From: Zhiyi Zhang Date: Fri, 15 Oct 2021 09:56:50 +0800 Subject: [PATCH 38/51] user32: Add DisplayConfigSetDeviceInfo() stub. To: wine-devel@winehq.org Signed-off-by: Zhiyi Zhang --- dlls/user32/sysparams.c | 10 ++++++++++ dlls/user32/user32.spec | 1 + include/winuser.h | 1 + 3 files changed, 12 insertions(+) diff --git a/dlls/user32/sysparams.c b/dlls/user32/sysparams.c index c42b6c77b0c..9f14bfb9a8e 100644 --- a/dlls/user32/sysparams.c +++ b/dlls/user32/sysparams.c @@ -1559,6 +1559,16 @@ LONG WINAPI DisplayConfigGetDeviceInfo(DISPLAYCONFIG_DEVICE_INFO_HEADER *packet) } } +LONG WINAPI DisplayConfigSetDeviceInfo(DISPLAYCONFIG_DEVICE_INFO_HEADER *packet) +{ + FIXME("%p stub.\n", packet); + + if (!packet || packet->size < sizeof(*packet)) + return ERROR_GEN_FAILURE; + + return ERROR_NOT_SUPPORTED; +} + /*********************************************************************** * SetDisplayConfig (USER32.@) */ diff --git a/dlls/user32/user32.spec b/dlls/user32/user32.spec index af63ae007a1..859a2221174 100644 --- a/dlls/user32/user32.spec +++ b/dlls/user32/user32.spec @@ -172,6 +172,7 @@ @ stdcall DispatchMessageA(ptr) @ stdcall DispatchMessageW(ptr) @ stdcall DisplayConfigGetDeviceInfo(ptr) +@ stdcall DisplayConfigSetDeviceInfo(ptr) # @ stub DisplayExitWindowsWarnings @ stdcall DlgDirListA(long str long long long) @ stdcall DlgDirListComboBoxA(long ptr long long long) diff --git a/include/winuser.h b/include/winuser.h index 4f79face860..4faaf2f346b 100644 --- a/include/winuser.h +++ b/include/winuser.h @@ -3486,6 +3486,7 @@ WINUSERAPI HDESK WINAPI CreateDesktopA(LPCSTR,LPCSTR,LPDEVMODEA,DWORD,ACCE WINUSERAPI HDESK WINAPI CreateDesktopW(LPCWSTR,LPCWSTR,LPDEVMODEW,DWORD,ACCESS_MASK,LPSECURITY_ATTRIBUTES); #define CreateDesktop WINELIB_NAME_AW(CreateDesktop) WINUSERAPI LONG WINAPI DisplayConfigGetDeviceInfo(DISPLAYCONFIG_DEVICE_INFO_HEADER *); +WINUSERAPI LONG WINAPI DisplayConfigSetDeviceInfo(DISPLAYCONFIG_DEVICE_INFO_HEADER *); WINUSERAPI BOOL WINAPI EnumDisplayDevicesA(LPCSTR,DWORD,LPDISPLAY_DEVICEA,DWORD); WINUSERAPI BOOL WINAPI EnumDisplayDevicesW(LPCWSTR,DWORD,LPDISPLAY_DEVICEW,DWORD); #define EnumDisplayDevices WINELIB_NAME_AW(EnumDisplayDevices) -- 2.32.0