user32: Add stubs for GetWindowDpiHostingBehavior and SetThreadDpiHostingBehavior.
This prevents Native Instruments Kontakt 7 from crashing on start-up.
This commit is contained in:
parent
c090bdbe0a
commit
09edd13919
5 changed files with 29 additions and 0 deletions
|
@ -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.@)
|
||||
*/
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 ))
|
||||
|
|
|
@ -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_ */
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue