Author: akhaldi
Date: Wed Mar 5 12:36:04 2014
New Revision: 62430
URL:
http://svn.reactos.org/svn/reactos?rev=62430&view=rev
Log:
[USER32]
* Mark some APIs as hotpatchable.
CORE-7959
Modified:
trunk/reactos/win32ss/user/user32/controls/scrollbar.c
trunk/reactos/win32ss/user/user32/misc/stubs.c
trunk/reactos/win32ss/user/user32/windows/class.c
trunk/reactos/win32ss/user/user32/windows/cursoricon.c
trunk/reactos/win32ss/user/user32/windows/defwnd.c
trunk/reactos/win32ss/user/user32/windows/input.c
trunk/reactos/win32ss/user/user32/windows/message.c
trunk/reactos/win32ss/user/user32/windows/nonclient.c
trunk/reactos/win32ss/user/user32/windows/window.c
Modified: trunk/reactos/win32ss/user/user32/controls/scrollbar.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/user32/contro…
==============================================================================
--- trunk/reactos/win32ss/user/user32/controls/scrollbar.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/user32/controls/scrollbar.c [iso-8859-1] Wed Mar 5
12:36:04 2014
@@ -1438,7 +1438,10 @@
/*
* @implemented
*/
-BOOL WINAPI EnableScrollBar( HWND hwnd, UINT nBar, UINT flags )
+BOOL
+WINAPI
+DECLSPEC_HOTPATCH
+EnableScrollBar( HWND hwnd, UINT nBar, UINT flags )
{
BOOL Hook, Ret = FALSE;
@@ -1499,7 +1502,9 @@
/*
* @implemented
*/
-BOOL WINAPI
+BOOL
+WINAPI
+DECLSPEC_HOTPATCH
GetScrollInfo(HWND Wnd, INT SBType, LPSCROLLINFO Info)
{
BOOL Hook, Ret = FALSE;
@@ -1528,7 +1533,9 @@
/*
* @implemented
*/
-INT WINAPI
+INT
+WINAPI
+DECLSPEC_HOTPATCH
GetScrollPos(HWND Wnd, INT Bar)
{
PWND pwnd;
@@ -1563,7 +1570,9 @@
/*
* @implemented
*/
-BOOL WINAPI
+BOOL
+WINAPI
+DECLSPEC_HOTPATCH
GetScrollRange(HWND Wnd, int Bar, LPINT MinPos, LPINT MaxPos)
{
PWND pwnd;
@@ -1615,7 +1624,9 @@
/*
* @implemented
*/
-INT WINAPI
+INT
+WINAPI
+DECLSPEC_HOTPATCH
SetScrollInfo(HWND Wnd, int SBType, LPCSCROLLINFO Info, BOOL bRedraw)
{
BOOL Hook;
@@ -1646,7 +1657,9 @@
/*
* @implemented
*/
-INT WINAPI
+INT
+WINAPI
+DECLSPEC_HOTPATCH
SetScrollPos(HWND hWnd, INT nBar, INT nPos, BOOL bRedraw)
{
SCROLLINFO ScrollInfo;
@@ -1661,7 +1674,9 @@
/*
* @implemented
*/
-BOOL WINAPI
+BOOL
+WINAPI
+DECLSPEC_HOTPATCH
SetScrollRange(HWND hWnd, INT nBar, INT nMinPos, INT nMaxPos, BOOL bRedraw)
{
PWND pWnd;
Modified: trunk/reactos/win32ss/user/user32/misc/stubs.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/user32/misc/s…
==============================================================================
--- trunk/reactos/win32ss/user/user32/misc/stubs.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/user32/misc/stubs.c [iso-8859-1] Wed Mar 5 12:36:04 2014
@@ -297,6 +297,7 @@
*/
UINT
WINAPI
+DECLSPEC_HOTPATCH
GetRawInputBuffer(
PRAWINPUT pData,
PUINT pcbSize,
@@ -359,6 +360,7 @@
*/
BOOL
WINAPI
+DECLSPEC_HOTPATCH
RegisterRawInputDevices(
PCRAWINPUTDEVICE pRawInputDevices,
UINT uiNumDevices,
Modified: trunk/reactos/win32ss/user/user32/windows/class.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/user32/window…
==============================================================================
--- trunk/reactos/win32ss/user/user32/windows/class.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/user32/windows/class.c [iso-8859-1] Wed Mar 5 12:36:04
2014
@@ -1832,6 +1832,7 @@
*/
LONG
WINAPI
+DECLSPEC_HOTPATCH
SetWindowLongA(
HWND hWnd,
int nIndex,
Modified: trunk/reactos/win32ss/user/user32/windows/cursoricon.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/user32/window…
==============================================================================
--- trunk/reactos/win32ss/user/user32/windows/cursoricon.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/user32/windows/cursoricon.c [iso-8859-1] Wed Mar 5
12:36:04 2014
@@ -2112,6 +2112,7 @@
*/
BOOL
WINAPI
+DECLSPEC_HOTPATCH
SetCursorPos(int X, int Y)
{
return NtUserxSetCursorPos(X,Y);
@@ -2122,6 +2123,7 @@
*/
BOOL
WINAPI
+DECLSPEC_HOTPATCH
GetCursorPos(LPPOINT lpPoint)
{
BOOL res;
Modified: trunk/reactos/win32ss/user/user32/windows/defwnd.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/user32/window…
==============================================================================
--- trunk/reactos/win32ss/user/user32/windows/defwnd.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/user32/windows/defwnd.c [iso-8859-1] Wed Mar 5 12:36:04
2014
@@ -36,7 +36,9 @@
/*
* @implemented
*/
-DWORD WINAPI
+DWORD
+WINAPI
+DECLSPEC_HOTPATCH
GetSysColor(int nIndex)
{
if(nIndex >= 0 && nIndex < NUM_SYSCOLORS)
@@ -51,7 +53,9 @@
/*
* @implemented
*/
-HBRUSH WINAPI
+HBRUSH
+WINAPI
+DECLSPEC_HOTPATCH
GetSysColorBrush(int nIndex)
{
if(nIndex >= 0 && nIndex < NUM_SYSCOLORS)
Modified: trunk/reactos/win32ss/user/user32/windows/input.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/user32/window…
==============================================================================
--- trunk/reactos/win32ss/user/user32/windows/input.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/user32/windows/input.c [iso-8859-1] Wed Mar 5 12:36:04
2014
@@ -114,7 +114,9 @@
/*
* @implemented
*/
-SHORT WINAPI
+SHORT
+WINAPI
+DECLSPEC_HOTPATCH
GetAsyncKeyState(int vKey)
{
if (vKey < 0 || vKey > 256)
@@ -185,7 +187,9 @@
/*
* @implemented
*/
-SHORT WINAPI
+SHORT
+WINAPI
+DECLSPEC_HOTPATCH
GetKeyState(int nVirtKey)
{
return (SHORT)NtUserGetKeyState((DWORD)nVirtKey);
Modified: trunk/reactos/win32ss/user/user32/windows/message.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/user32/window…
==============================================================================
--- trunk/reactos/win32ss/user/user32/windows/message.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/user32/windows/message.c [iso-8859-1] Wed Mar 5 12:36:04
2014
@@ -1908,7 +1908,9 @@
/*
* @implemented
*/
-LRESULT WINAPI
+LRESULT
+WINAPI
+DECLSPEC_HOTPATCH
DispatchMessageA(CONST MSG *lpmsg)
{
LRESULT Ret = 0;
@@ -2000,7 +2002,9 @@
/*
* @implemented
*/
-LRESULT WINAPI
+LRESULT
+WINAPI
+DECLSPEC_HOTPATCH
DispatchMessageW(CONST MSG *lpmsg)
{
LRESULT Ret = 0;
@@ -2100,7 +2104,9 @@
/*
* @implemented
*/
-BOOL WINAPI
+BOOL
+WINAPI
+DECLSPEC_HOTPATCH
GetMessageA(LPMSG lpMsg,
HWND hWnd,
UINT wMsgFilterMin,
@@ -2128,7 +2134,9 @@
/*
* @implemented
*/
-BOOL WINAPI
+BOOL
+WINAPI
+DECLSPEC_HOTPATCH
GetMessageW(LPMSG lpMsg,
HWND hWnd,
UINT wMsgFilterMin,
@@ -2191,7 +2199,9 @@
/*
* @implemented
*/
-BOOL WINAPI
+BOOL
+WINAPI
+DECLSPEC_HOTPATCH
PeekMessageA(LPMSG lpMsg,
HWND hWnd,
UINT wMsgFilterMin,
@@ -2217,6 +2227,7 @@
*/
BOOL
WINAPI
+DECLSPEC_HOTPATCH
PeekMessageW(
LPMSG lpMsg,
HWND hWnd,
Modified: trunk/reactos/win32ss/user/user32/windows/nonclient.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/user32/window…
==============================================================================
--- trunk/reactos/win32ss/user/user32/windows/nonclient.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/user32/windows/nonclient.c [iso-8859-1] Wed Mar 5 12:36:04
2014
@@ -1233,7 +1233,9 @@
/*
* @implemented
*/
-BOOL WINAPI
+BOOL
+WINAPI
+DECLSPEC_HOTPATCH
AdjustWindowRectEx(LPRECT lpRect,
DWORD dwStyle,
BOOL bMenu,
@@ -1266,7 +1268,9 @@
/*
* @implemented
*/
-BOOL WINAPI
+BOOL
+WINAPI
+DECLSPEC_HOTPATCH
AdjustWindowRect(LPRECT lpRect,
DWORD dwStyle,
BOOL bMenu)
Modified: trunk/reactos/win32ss/user/user32/windows/window.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/user32/window…
==============================================================================
--- trunk/reactos/win32ss/user/user32/windows/window.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/user32/windows/window.c [iso-8859-1] Wed Mar 5 12:36:04
2014
@@ -322,7 +322,9 @@
/*
* @implemented
*/
-HWND WINAPI
+HWND
+WINAPI
+DECLSPEC_HOTPATCH
CreateWindowExA(DWORD dwExStyle,
LPCSTR lpClassName,
LPCSTR lpWindowName,
@@ -445,7 +447,9 @@
/*
* @implemented
*/
-HWND WINAPI
+HWND
+WINAPI
+DECLSPEC_HOTPATCH
CreateWindowExW(DWORD dwExStyle,
LPCWSTR lpClassName,
LPCWSTR lpWindowName,
@@ -1143,7 +1147,9 @@
/*
* @implemented
*/
-BOOL WINAPI
+BOOL
+WINAPI
+DECLSPEC_HOTPATCH
GetWindowInfo(HWND hWnd,
PWINDOWINFO pwi)
{
@@ -1636,7 +1642,9 @@
/*
* @implemented
*/
-BOOL WINAPI
+BOOL
+WINAPI
+DECLSPEC_HOTPATCH
SetWindowTextA(HWND hWnd,
LPCSTR lpString)
{
@@ -1659,7 +1667,9 @@
/*
* @implemented
*/
-BOOL WINAPI
+BOOL
+WINAPI
+DECLSPEC_HOTPATCH
SetWindowTextW(HWND hWnd,
LPCWSTR lpString)
{