Commit 74159467 authored by Krzysztof Nowicki's avatar Krzysztof Nowicki Committed by Alexandre Julliard

user32: Make more functions hot-patchable for Steam.

parent ee31a6ae
...@@ -28,6 +28,8 @@ ...@@ -28,6 +28,8 @@
* If you discover missing features, or bugs, please note them below. * If you discover missing features, or bugs, please note them below.
*/ */
#include "config.h"
#include <stdarg.h> #include <stdarg.h>
#include "windef.h" #include "windef.h"
...@@ -1611,7 +1613,7 @@ LRESULT ScrollBarWndProc_common( HWND hwnd, UINT message, WPARAM wParam, LPARAM ...@@ -1611,7 +1613,7 @@ LRESULT ScrollBarWndProc_common( HWND hwnd, UINT message, WPARAM wParam, LPARAM
* (corresponding to the 76 different positions of the window on * (corresponding to the 76 different positions of the window on
* the text), and info->nPage=25. * the text), and info->nPage=25.
*/ */
INT WINAPI SetScrollInfo(HWND hwnd, INT nBar, const SCROLLINFO *info, BOOL bRedraw) INT WINAPI DECLSPEC_HOTPATCH SetScrollInfo(HWND hwnd, INT nBar, const SCROLLINFO *info, BOOL bRedraw)
{ {
TRACE("hwnd=%p nBar=%d info=%p, bRedraw=%d\n", hwnd, nBar, info, bRedraw); TRACE("hwnd=%p nBar=%d info=%p, bRedraw=%d\n", hwnd, nBar, info, bRedraw);
...@@ -1781,7 +1783,7 @@ done: ...@@ -1781,7 +1783,7 @@ done:
* ( if nBar is SB_CTL, GetScrollInfo returns TRUE even if nothing * ( if nBar is SB_CTL, GetScrollInfo returns TRUE even if nothing
* is filled) * is filled)
*/ */
BOOL WINAPI GetScrollInfo(HWND hwnd, INT nBar, LPSCROLLINFO info) BOOL WINAPI DECLSPEC_HOTPATCH GetScrollInfo(HWND hwnd, INT nBar, LPSCROLLINFO info)
{ {
TRACE("hwnd=%p nBar=%d info=%p\n", hwnd, nBar, info); TRACE("hwnd=%p nBar=%d info=%p\n", hwnd, nBar, info);
...@@ -1840,7 +1842,7 @@ BOOL WINAPI GetScrollBarInfo(HWND hwnd, LONG idObject, LPSCROLLBARINFO info) ...@@ -1840,7 +1842,7 @@ BOOL WINAPI GetScrollBarInfo(HWND hwnd, LONG idObject, LPSCROLLBARINFO info)
* Note the ambiguity when 0 is returned. Use GetLastError * Note the ambiguity when 0 is returned. Use GetLastError
* to make sure there was an error (and to know which one). * to make sure there was an error (and to know which one).
*/ */
INT WINAPI SetScrollPos( HWND hwnd, INT nBar, INT nPos, BOOL bRedraw) INT WINAPI DECLSPEC_HOTPATCH SetScrollPos( HWND hwnd, INT nBar, INT nPos, BOOL bRedraw)
{ {
SCROLLINFO info; SCROLLINFO info;
SCROLLBAR_INFO *infoPtr; SCROLLBAR_INFO *infoPtr;
...@@ -1873,7 +1875,7 @@ INT WINAPI SetScrollPos( HWND hwnd, INT nBar, INT nPos, BOOL bRedraw) ...@@ -1873,7 +1875,7 @@ INT WINAPI SetScrollPos( HWND hwnd, INT nBar, INT nPos, BOOL bRedraw)
* There is ambiguity when 0 is returned. Use GetLastError * There is ambiguity when 0 is returned. Use GetLastError
* to make sure there was an error (and to know which one). * to make sure there was an error (and to know which one).
*/ */
INT WINAPI GetScrollPos(HWND hwnd, INT nBar) INT WINAPI DECLSPEC_HOTPATCH GetScrollPos(HWND hwnd, INT nBar)
{ {
TRACE("hwnd=%p nBar=%d\n", hwnd, nBar); TRACE("hwnd=%p nBar=%d\n", hwnd, nBar);
...@@ -1903,7 +1905,7 @@ INT WINAPI GetScrollPos(HWND hwnd, INT nBar) ...@@ -1903,7 +1905,7 @@ INT WINAPI GetScrollPos(HWND hwnd, INT nBar)
* Success: TRUE * Success: TRUE
* Failure: FALSE * Failure: FALSE
*/ */
BOOL WINAPI SetScrollRange(HWND hwnd, INT nBar, INT minVal, INT maxVal, BOOL bRedraw) BOOL WINAPI DECLSPEC_HOTPATCH SetScrollRange(HWND hwnd, INT nBar, INT minVal, INT maxVal, BOOL bRedraw)
{ {
SCROLLINFO info; SCROLLINFO info;
...@@ -1932,7 +1934,7 @@ BOOL WINAPI SetScrollRange(HWND hwnd, INT nBar, INT minVal, INT maxVal, BOOL bRe ...@@ -1932,7 +1934,7 @@ BOOL WINAPI SetScrollRange(HWND hwnd, INT nBar, INT minVal, INT maxVal, BOOL bRe
* RETURNS * RETURNS
* TRUE if values is filled * TRUE if values is filled
*/ */
BOOL WINAPI GetScrollRange(HWND hwnd, INT nBar, LPINT lpMin, LPINT lpMax) BOOL WINAPI DECLSPEC_HOTPATCH GetScrollRange(HWND hwnd, INT nBar, LPINT lpMin, LPINT lpMax)
{ {
TRACE("hwnd=%p nBar=%d lpMin=%p lpMax=%p\n", hwnd, nBar, lpMin, lpMax); TRACE("hwnd=%p nBar=%d lpMin=%p lpMax=%p\n", hwnd, nBar, lpMin, lpMax);
...@@ -2004,7 +2006,7 @@ static BOOL SCROLL_ShowScrollBar( HWND hwnd, INT nBar, BOOL fShowH, BOOL fShowV ...@@ -2004,7 +2006,7 @@ static BOOL SCROLL_ShowScrollBar( HWND hwnd, INT nBar, BOOL fShowH, BOOL fShowV
* Success: TRUE * Success: TRUE
* Failure: FALSE * Failure: FALSE
*/ */
BOOL WINAPI ShowScrollBar(HWND hwnd, INT nBar, BOOL fShow) BOOL WINAPI DECLSPEC_HOTPATCH ShowScrollBar(HWND hwnd, INT nBar, BOOL fShow)
{ {
if ( !hwnd ) if ( !hwnd )
return FALSE; return FALSE;
...@@ -2020,7 +2022,7 @@ BOOL WINAPI ShowScrollBar(HWND hwnd, INT nBar, BOOL fShow) ...@@ -2020,7 +2022,7 @@ BOOL WINAPI ShowScrollBar(HWND hwnd, INT nBar, BOOL fShow)
* *
* Enables or disables the scroll bars. * Enables or disables the scroll bars.
*/ */
BOOL WINAPI EnableScrollBar( HWND hwnd, UINT nBar, UINT flags ) BOOL WINAPI DECLSPEC_HOTPATCH EnableScrollBar( HWND hwnd, UINT nBar, UINT flags )
{ {
BOOL bFineWithMe; BOOL bFineWithMe;
SCROLLBAR_INFO *infoPtr; SCROLLBAR_INFO *infoPtr;
......
...@@ -2910,7 +2910,7 @@ UINT WINAPI GetDoubleClickTime(void) ...@@ -2910,7 +2910,7 @@ UINT WINAPI GetDoubleClickTime(void)
/************************************************************************* /*************************************************************************
* GetSysColor (USER32.@) * GetSysColor (USER32.@)
*/ */
COLORREF WINAPI GetSysColor( INT nIndex ) COLORREF WINAPI DECLSPEC_HOTPATCH GetSysColor( INT nIndex )
{ {
if (nIndex >= 0 && nIndex < NUM_SYS_COLORS) if (nIndex >= 0 && nIndex < NUM_SYS_COLORS)
return SysColors[nIndex]; return SysColors[nIndex];
...@@ -3025,7 +3025,7 @@ DWORD_PTR WINAPI SetSysColorsTemp( const COLORREF *pPens, const HBRUSH *pBrushes ...@@ -3025,7 +3025,7 @@ DWORD_PTR WINAPI SetSysColorsTemp( const COLORREF *pPens, const HBRUSH *pBrushes
/*********************************************************************** /***********************************************************************
* GetSysColorBrush (USER32.@) * GetSysColorBrush (USER32.@)
*/ */
HBRUSH WINAPI GetSysColorBrush( INT index ) HBRUSH WINAPI DECLSPEC_HOTPATCH GetSysColorBrush( INT index )
{ {
if (0 <= index && index < NUM_SYS_COLORS) return SysColorBrushes[index]; if (0 <= index && index < NUM_SYS_COLORS) return SysColorBrushes[index];
WARN("Unknown index(%d)\n", index ); WARN("Unknown index(%d)\n", index );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment