Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
09edd139
Commit
09edd139
authored
Nov 12, 2023
by
Paweł Ulita
Committed by
Alexandre Julliard
Nov 15, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Add stubs for GetWindowDpiHostingBehavior and SetThreadDpiHostingBehavior.
This prevents Native Instruments Kontakt 7 from crashing on start-up.
parent
c090bdbe
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
29 additions
and
0 deletions
+29
-0
sysparams.c
dlls/user32/sysparams.c
+9
-0
user32.spec
dlls/user32/user32.spec
+2
-0
win.c
dlls/user32/win.c
+10
-0
windef.h
include/windef.h
+6
-0
winuser.h
include/winuser.h
+2
-0
No files found.
dlls/user32/sysparams.c
View file @
09edd139
...
...
@@ -746,6 +746,15 @@ DPI_AWARENESS_CONTEXT WINAPI SetThreadDpiAwarenessContext( DPI_AWARENESS_CONTEXT
return
ULongToHandle
(
prev
);
}
/**********************************************************************
* SetThreadDpiHostingBehavior (USER32.@)
*/
DPI_HOSTING_BEHAVIOR
WINAPI
SetThreadDpiHostingBehavior
(
DPI_HOSTING_BEHAVIOR
value
)
{
FIXME
(
"(%d): stub
\n
"
,
value
);
return
DPI_HOSTING_BEHAVIOR_DEFAULT
;
}
/***********************************************************************
* MonitorFromRect (USER32.@)
*/
...
...
dlls/user32/user32.spec
View file @
09edd139
...
...
@@ -410,6 +410,7 @@
@ stdcall GetWindowDC(long) NtUserGetWindowDC
@ stdcall GetWindowDisplayAffinity(long ptr)
@ stdcall GetWindowDpiAwarenessContext(long)
@ stdcall GetWindowDpiHostingBehavior(long)
@ stdcall GetWindowInfo(long ptr)
@ stdcall GetWindowLongA(long long)
@ stdcall -arch=win64 GetWindowLongPtrA(long long)
...
...
@@ -719,6 +720,7 @@
@ stdcall SetTaskmanWindow (long)
@ stdcall SetThreadDesktop(long) NtUserSetThreadDesktop
@ stdcall SetThreadDpiAwarenessContext(ptr)
@ stdcall SetThreadDpiHostingBehavior(ptr)
@ stdcall SetTimer(long long long ptr)
@ stdcall SetUserObjectInformationA(long long ptr long)
@ stdcall SetUserObjectInformationW(long long ptr long) NtUserSetObjectInformation
...
...
dlls/user32/win.c
View file @
09edd139
...
...
@@ -616,6 +616,16 @@ DPI_AWARENESS_CONTEXT WINAPI GetWindowDpiAwarenessContext( HWND hwnd )
}
/***********************************************************************
* GetWindowDpiHostingBehavior (USER32.@)
*/
DPI_HOSTING_BEHAVIOR
WINAPI
GetWindowDpiHostingBehavior
(
HWND
hwnd
)
{
FIXME
(
"(%p): stub
\n
"
,
hwnd
);
return
DPI_HOSTING_BEHAVIOR_DEFAULT
;
}
static
LONG_PTR
get_window_long_ptr
(
HWND
hwnd
,
int
offset
,
LONG_PTR
ret
,
BOOL
ansi
)
{
if
(
offset
==
DWLP_DLGPROC
&&
NtUserGetDialogInfo
(
hwnd
))
...
...
include/windef.h
View file @
09edd139
...
...
@@ -439,4 +439,10 @@ typedef enum DPI_AWARENESS
}
#endif
typedef
enum
{
DPI_HOSTING_BEHAVIOR_INVALID
=
-
1
,
DPI_HOSTING_BEHAVIOR_DEFAULT
=
0
,
DPI_HOSTING_BEHAVIOR_MIXED
=
1
}
DPI_HOSTING_BEHAVIOR
;
#endif
/* _WINDEF_ */
include/winuser.h
View file @
09edd139
...
...
@@ -4296,6 +4296,7 @@ WINUSERAPI DWORD WINAPI GetWindowContextHelpId(HWND);
WINUSERAPI
HDC
WINAPI
GetWindowDC
(
HWND
);
WINUSERAPI
BOOL
WINAPI
GetWindowDisplayAffinity
(
HWND
,
DWORD
*
);
WINUSERAPI
DPI_AWARENESS_CONTEXT
WINAPI
GetWindowDpiAwarenessContext
(
HWND
);
WINUSERAPI
DPI_HOSTING_BEHAVIOR
WINAPI
GetWindowDpiHostingBehavior
(
HWND
);
WINUSERAPI
BOOL
WINAPI
GetWindowFeedbackSetting
(
HWND
,
FEEDBACK_TYPE
,
DWORD
,
UINT32
*
,
void
*
);
WINUSERAPI
BOOL
WINAPI
GetWindowInfo
(
HWND
,
PWINDOWINFO
);
WINUSERAPI
LONG
WINAPI
GetWindowLongA
(
HWND
,
INT
);
...
...
@@ -4608,6 +4609,7 @@ WINUSERAPI BOOL WINAPI SetSystemMenu(HWND,HMENU);
WINUSERAPI
UINT_PTR
WINAPI
SetSystemTimer
(
HWND
,
UINT_PTR
,
UINT
,
void
*
);
WINUSERAPI
BOOL
WINAPI
SetThreadDesktop
(
HDESK
);
WINUSERAPI
DPI_AWARENESS_CONTEXT
WINAPI
SetThreadDpiAwarenessContext
(
DPI_AWARENESS_CONTEXT
);
WINUSERAPI
DPI_HOSTING_BEHAVIOR
WINAPI
SetThreadDpiHostingBehavior
(
DPI_HOSTING_BEHAVIOR
);
WINUSERAPI
UINT_PTR
WINAPI
SetTimer
(
HWND
,
UINT_PTR
,
UINT
,
TIMERPROC
);
WINUSERAPI
BOOL
WINAPI
SetUserObjectInformationA
(
HANDLE
,
INT
,
LPVOID
,
DWORD
);
WINUSERAPI
BOOL
WINAPI
SetUserObjectInformationW
(
HANDLE
,
INT
,
LPVOID
,
DWORD
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment