mirror of
https://github.com/reactos/reactos.git
synced 2025-07-28 16:52:15 +00:00
[USER32]
* Mark some APIs as hotpatchable. CORE-7959 svn path=/trunk/; revision=62430
This commit is contained in:
parent
1116c00fa2
commit
ec1dcd341e
9 changed files with 76 additions and 23 deletions
|
@ -1438,7 +1438,10 @@ ScrollBarWndProcA(HWND Wnd, UINT Msg, WPARAM wParam, LPARAM lParam)
|
||||||
/*
|
/*
|
||||||
* @implemented
|
* @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;
|
BOOL Hook, Ret = FALSE;
|
||||||
|
|
||||||
|
@ -1499,7 +1502,9 @@ RealGetScrollInfo(HWND Wnd, INT SBType, LPSCROLLINFO Info)
|
||||||
/*
|
/*
|
||||||
* @implemented
|
* @implemented
|
||||||
*/
|
*/
|
||||||
BOOL WINAPI
|
BOOL
|
||||||
|
WINAPI
|
||||||
|
DECLSPEC_HOTPATCH
|
||||||
GetScrollInfo(HWND Wnd, INT SBType, LPSCROLLINFO Info)
|
GetScrollInfo(HWND Wnd, INT SBType, LPSCROLLINFO Info)
|
||||||
{
|
{
|
||||||
BOOL Hook, Ret = FALSE;
|
BOOL Hook, Ret = FALSE;
|
||||||
|
@ -1528,7 +1533,9 @@ GetScrollInfo(HWND Wnd, INT SBType, LPSCROLLINFO Info)
|
||||||
/*
|
/*
|
||||||
* @implemented
|
* @implemented
|
||||||
*/
|
*/
|
||||||
INT WINAPI
|
INT
|
||||||
|
WINAPI
|
||||||
|
DECLSPEC_HOTPATCH
|
||||||
GetScrollPos(HWND Wnd, INT Bar)
|
GetScrollPos(HWND Wnd, INT Bar)
|
||||||
{
|
{
|
||||||
PWND pwnd;
|
PWND pwnd;
|
||||||
|
@ -1563,7 +1570,9 @@ GetScrollPos(HWND Wnd, INT Bar)
|
||||||
/*
|
/*
|
||||||
* @implemented
|
* @implemented
|
||||||
*/
|
*/
|
||||||
BOOL WINAPI
|
BOOL
|
||||||
|
WINAPI
|
||||||
|
DECLSPEC_HOTPATCH
|
||||||
GetScrollRange(HWND Wnd, int Bar, LPINT MinPos, LPINT MaxPos)
|
GetScrollRange(HWND Wnd, int Bar, LPINT MinPos, LPINT MaxPos)
|
||||||
{
|
{
|
||||||
PWND pwnd;
|
PWND pwnd;
|
||||||
|
@ -1615,7 +1624,9 @@ RealSetScrollInfo(HWND Wnd, int SBType, LPCSCROLLINFO Info, BOOL bRedraw)
|
||||||
/*
|
/*
|
||||||
* @implemented
|
* @implemented
|
||||||
*/
|
*/
|
||||||
INT WINAPI
|
INT
|
||||||
|
WINAPI
|
||||||
|
DECLSPEC_HOTPATCH
|
||||||
SetScrollInfo(HWND Wnd, int SBType, LPCSCROLLINFO Info, BOOL bRedraw)
|
SetScrollInfo(HWND Wnd, int SBType, LPCSCROLLINFO Info, BOOL bRedraw)
|
||||||
{
|
{
|
||||||
BOOL Hook;
|
BOOL Hook;
|
||||||
|
@ -1646,7 +1657,9 @@ SetScrollInfo(HWND Wnd, int SBType, LPCSCROLLINFO Info, BOOL bRedraw)
|
||||||
/*
|
/*
|
||||||
* @implemented
|
* @implemented
|
||||||
*/
|
*/
|
||||||
INT WINAPI
|
INT
|
||||||
|
WINAPI
|
||||||
|
DECLSPEC_HOTPATCH
|
||||||
SetScrollPos(HWND hWnd, INT nBar, INT nPos, BOOL bRedraw)
|
SetScrollPos(HWND hWnd, INT nBar, INT nPos, BOOL bRedraw)
|
||||||
{
|
{
|
||||||
SCROLLINFO ScrollInfo;
|
SCROLLINFO ScrollInfo;
|
||||||
|
@ -1661,7 +1674,9 @@ SetScrollPos(HWND hWnd, INT nBar, INT nPos, BOOL bRedraw)
|
||||||
/*
|
/*
|
||||||
* @implemented
|
* @implemented
|
||||||
*/
|
*/
|
||||||
BOOL WINAPI
|
BOOL
|
||||||
|
WINAPI
|
||||||
|
DECLSPEC_HOTPATCH
|
||||||
SetScrollRange(HWND hWnd, INT nBar, INT nMinPos, INT nMaxPos, BOOL bRedraw)
|
SetScrollRange(HWND hWnd, INT nBar, INT nMinPos, INT nMaxPos, BOOL bRedraw)
|
||||||
{
|
{
|
||||||
PWND pWnd;
|
PWND pWnd;
|
||||||
|
|
|
@ -297,6 +297,7 @@ DefRawInputProc(
|
||||||
*/
|
*/
|
||||||
UINT
|
UINT
|
||||||
WINAPI
|
WINAPI
|
||||||
|
DECLSPEC_HOTPATCH
|
||||||
GetRawInputBuffer(
|
GetRawInputBuffer(
|
||||||
PRAWINPUT pData,
|
PRAWINPUT pData,
|
||||||
PUINT pcbSize,
|
PUINT pcbSize,
|
||||||
|
@ -359,6 +360,7 @@ GetRegisteredRawInputDevices(
|
||||||
*/
|
*/
|
||||||
BOOL
|
BOOL
|
||||||
WINAPI
|
WINAPI
|
||||||
|
DECLSPEC_HOTPATCH
|
||||||
RegisterRawInputDevices(
|
RegisterRawInputDevices(
|
||||||
PCRAWINPUTDEVICE pRawInputDevices,
|
PCRAWINPUTDEVICE pRawInputDevices,
|
||||||
UINT uiNumDevices,
|
UINT uiNumDevices,
|
||||||
|
|
|
@ -1832,6 +1832,7 @@ SetWindowWord ( HWND hWnd,int nIndex,WORD wNewWord )
|
||||||
*/
|
*/
|
||||||
LONG
|
LONG
|
||||||
WINAPI
|
WINAPI
|
||||||
|
DECLSPEC_HOTPATCH
|
||||||
SetWindowLongA(
|
SetWindowLongA(
|
||||||
HWND hWnd,
|
HWND hWnd,
|
||||||
int nIndex,
|
int nIndex,
|
||||||
|
|
|
@ -2112,6 +2112,7 @@ CursorIconToCursor(HICON hIcon,
|
||||||
*/
|
*/
|
||||||
BOOL
|
BOOL
|
||||||
WINAPI
|
WINAPI
|
||||||
|
DECLSPEC_HOTPATCH
|
||||||
SetCursorPos(int X, int Y)
|
SetCursorPos(int X, int Y)
|
||||||
{
|
{
|
||||||
return NtUserxSetCursorPos(X,Y);
|
return NtUserxSetCursorPos(X,Y);
|
||||||
|
@ -2122,6 +2123,7 @@ SetCursorPos(int X, int Y)
|
||||||
*/
|
*/
|
||||||
BOOL
|
BOOL
|
||||||
WINAPI
|
WINAPI
|
||||||
|
DECLSPEC_HOTPATCH
|
||||||
GetCursorPos(LPPOINT lpPoint)
|
GetCursorPos(LPPOINT lpPoint)
|
||||||
{
|
{
|
||||||
BOOL res;
|
BOOL res;
|
||||||
|
|
|
@ -36,7 +36,9 @@ static short iMenuSysKey = 0;
|
||||||
/*
|
/*
|
||||||
* @implemented
|
* @implemented
|
||||||
*/
|
*/
|
||||||
DWORD WINAPI
|
DWORD
|
||||||
|
WINAPI
|
||||||
|
DECLSPEC_HOTPATCH
|
||||||
GetSysColor(int nIndex)
|
GetSysColor(int nIndex)
|
||||||
{
|
{
|
||||||
if(nIndex >= 0 && nIndex < NUM_SYSCOLORS)
|
if(nIndex >= 0 && nIndex < NUM_SYSCOLORS)
|
||||||
|
@ -51,7 +53,9 @@ GetSysColor(int nIndex)
|
||||||
/*
|
/*
|
||||||
* @implemented
|
* @implemented
|
||||||
*/
|
*/
|
||||||
HBRUSH WINAPI
|
HBRUSH
|
||||||
|
WINAPI
|
||||||
|
DECLSPEC_HOTPATCH
|
||||||
GetSysColorBrush(int nIndex)
|
GetSysColorBrush(int nIndex)
|
||||||
{
|
{
|
||||||
if(nIndex >= 0 && nIndex < NUM_SYSCOLORS)
|
if(nIndex >= 0 && nIndex < NUM_SYSCOLORS)
|
||||||
|
|
|
@ -114,7 +114,9 @@ EnableWindow(HWND hWnd, BOOL bEnable)
|
||||||
/*
|
/*
|
||||||
* @implemented
|
* @implemented
|
||||||
*/
|
*/
|
||||||
SHORT WINAPI
|
SHORT
|
||||||
|
WINAPI
|
||||||
|
DECLSPEC_HOTPATCH
|
||||||
GetAsyncKeyState(int vKey)
|
GetAsyncKeyState(int vKey)
|
||||||
{
|
{
|
||||||
if (vKey < 0 || vKey > 256)
|
if (vKey < 0 || vKey > 256)
|
||||||
|
@ -185,7 +187,9 @@ GetKeyNameTextW(LONG lParam,
|
||||||
/*
|
/*
|
||||||
* @implemented
|
* @implemented
|
||||||
*/
|
*/
|
||||||
SHORT WINAPI
|
SHORT
|
||||||
|
WINAPI
|
||||||
|
DECLSPEC_HOTPATCH
|
||||||
GetKeyState(int nVirtKey)
|
GetKeyState(int nVirtKey)
|
||||||
{
|
{
|
||||||
return (SHORT)NtUserGetKeyState((DWORD)nVirtKey);
|
return (SHORT)NtUserGetKeyState((DWORD)nVirtKey);
|
||||||
|
|
|
@ -1908,7 +1908,9 @@ CallWindowProcW(WNDPROC lpPrevWndFunc,
|
||||||
/*
|
/*
|
||||||
* @implemented
|
* @implemented
|
||||||
*/
|
*/
|
||||||
LRESULT WINAPI
|
LRESULT
|
||||||
|
WINAPI
|
||||||
|
DECLSPEC_HOTPATCH
|
||||||
DispatchMessageA(CONST MSG *lpmsg)
|
DispatchMessageA(CONST MSG *lpmsg)
|
||||||
{
|
{
|
||||||
LRESULT Ret = 0;
|
LRESULT Ret = 0;
|
||||||
|
@ -2000,7 +2002,9 @@ DispatchMessageA(CONST MSG *lpmsg)
|
||||||
/*
|
/*
|
||||||
* @implemented
|
* @implemented
|
||||||
*/
|
*/
|
||||||
LRESULT WINAPI
|
LRESULT
|
||||||
|
WINAPI
|
||||||
|
DECLSPEC_HOTPATCH
|
||||||
DispatchMessageW(CONST MSG *lpmsg)
|
DispatchMessageW(CONST MSG *lpmsg)
|
||||||
{
|
{
|
||||||
LRESULT Ret = 0;
|
LRESULT Ret = 0;
|
||||||
|
@ -2100,7 +2104,9 @@ IntConvertMsgToAnsi(LPMSG lpMsg)
|
||||||
/*
|
/*
|
||||||
* @implemented
|
* @implemented
|
||||||
*/
|
*/
|
||||||
BOOL WINAPI
|
BOOL
|
||||||
|
WINAPI
|
||||||
|
DECLSPEC_HOTPATCH
|
||||||
GetMessageA(LPMSG lpMsg,
|
GetMessageA(LPMSG lpMsg,
|
||||||
HWND hWnd,
|
HWND hWnd,
|
||||||
UINT wMsgFilterMin,
|
UINT wMsgFilterMin,
|
||||||
|
@ -2128,7 +2134,9 @@ GetMessageA(LPMSG lpMsg,
|
||||||
/*
|
/*
|
||||||
* @implemented
|
* @implemented
|
||||||
*/
|
*/
|
||||||
BOOL WINAPI
|
BOOL
|
||||||
|
WINAPI
|
||||||
|
DECLSPEC_HOTPATCH
|
||||||
GetMessageW(LPMSG lpMsg,
|
GetMessageW(LPMSG lpMsg,
|
||||||
HWND hWnd,
|
HWND hWnd,
|
||||||
UINT wMsgFilterMin,
|
UINT wMsgFilterMin,
|
||||||
|
@ -2191,7 +2199,9 @@ PeekMessageWorker( PMSG pMsg,
|
||||||
/*
|
/*
|
||||||
* @implemented
|
* @implemented
|
||||||
*/
|
*/
|
||||||
BOOL WINAPI
|
BOOL
|
||||||
|
WINAPI
|
||||||
|
DECLSPEC_HOTPATCH
|
||||||
PeekMessageA(LPMSG lpMsg,
|
PeekMessageA(LPMSG lpMsg,
|
||||||
HWND hWnd,
|
HWND hWnd,
|
||||||
UINT wMsgFilterMin,
|
UINT wMsgFilterMin,
|
||||||
|
@ -2217,6 +2227,7 @@ PeekMessageA(LPMSG lpMsg,
|
||||||
*/
|
*/
|
||||||
BOOL
|
BOOL
|
||||||
WINAPI
|
WINAPI
|
||||||
|
DECLSPEC_HOTPATCH
|
||||||
PeekMessageW(
|
PeekMessageW(
|
||||||
LPMSG lpMsg,
|
LPMSG lpMsg,
|
||||||
HWND hWnd,
|
HWND hWnd,
|
||||||
|
|
|
@ -1233,7 +1233,9 @@ RealAdjustWindowRectEx(LPRECT lpRect,
|
||||||
/*
|
/*
|
||||||
* @implemented
|
* @implemented
|
||||||
*/
|
*/
|
||||||
BOOL WINAPI
|
BOOL
|
||||||
|
WINAPI
|
||||||
|
DECLSPEC_HOTPATCH
|
||||||
AdjustWindowRectEx(LPRECT lpRect,
|
AdjustWindowRectEx(LPRECT lpRect,
|
||||||
DWORD dwStyle,
|
DWORD dwStyle,
|
||||||
BOOL bMenu,
|
BOOL bMenu,
|
||||||
|
@ -1266,7 +1268,9 @@ AdjustWindowRectEx(LPRECT lpRect,
|
||||||
/*
|
/*
|
||||||
* @implemented
|
* @implemented
|
||||||
*/
|
*/
|
||||||
BOOL WINAPI
|
BOOL
|
||||||
|
WINAPI
|
||||||
|
DECLSPEC_HOTPATCH
|
||||||
AdjustWindowRect(LPRECT lpRect,
|
AdjustWindowRect(LPRECT lpRect,
|
||||||
DWORD dwStyle,
|
DWORD dwStyle,
|
||||||
BOOL bMenu)
|
BOOL bMenu)
|
||||||
|
|
|
@ -322,7 +322,9 @@ cleanup:
|
||||||
/*
|
/*
|
||||||
* @implemented
|
* @implemented
|
||||||
*/
|
*/
|
||||||
HWND WINAPI
|
HWND
|
||||||
|
WINAPI
|
||||||
|
DECLSPEC_HOTPATCH
|
||||||
CreateWindowExA(DWORD dwExStyle,
|
CreateWindowExA(DWORD dwExStyle,
|
||||||
LPCSTR lpClassName,
|
LPCSTR lpClassName,
|
||||||
LPCSTR lpWindowName,
|
LPCSTR lpWindowName,
|
||||||
|
@ -445,7 +447,9 @@ CreateWindowExA(DWORD dwExStyle,
|
||||||
/*
|
/*
|
||||||
* @implemented
|
* @implemented
|
||||||
*/
|
*/
|
||||||
HWND WINAPI
|
HWND
|
||||||
|
WINAPI
|
||||||
|
DECLSPEC_HOTPATCH
|
||||||
CreateWindowExW(DWORD dwExStyle,
|
CreateWindowExW(DWORD dwExStyle,
|
||||||
LPCWSTR lpClassName,
|
LPCWSTR lpClassName,
|
||||||
LPCWSTR lpWindowName,
|
LPCWSTR lpWindowName,
|
||||||
|
@ -1143,7 +1147,9 @@ GetTopWindow(HWND hWnd)
|
||||||
/*
|
/*
|
||||||
* @implemented
|
* @implemented
|
||||||
*/
|
*/
|
||||||
BOOL WINAPI
|
BOOL
|
||||||
|
WINAPI
|
||||||
|
DECLSPEC_HOTPATCH
|
||||||
GetWindowInfo(HWND hWnd,
|
GetWindowInfo(HWND hWnd,
|
||||||
PWINDOWINFO pwi)
|
PWINDOWINFO pwi)
|
||||||
{
|
{
|
||||||
|
@ -1636,7 +1642,9 @@ return NtUserCallOneParam( (DWORD_PTR)dwDefaultLayout, ONEPARAM_ROUTINE_SETPROCD
|
||||||
/*
|
/*
|
||||||
* @implemented
|
* @implemented
|
||||||
*/
|
*/
|
||||||
BOOL WINAPI
|
BOOL
|
||||||
|
WINAPI
|
||||||
|
DECLSPEC_HOTPATCH
|
||||||
SetWindowTextA(HWND hWnd,
|
SetWindowTextA(HWND hWnd,
|
||||||
LPCSTR lpString)
|
LPCSTR lpString)
|
||||||
{
|
{
|
||||||
|
@ -1659,7 +1667,9 @@ SetWindowTextA(HWND hWnd,
|
||||||
/*
|
/*
|
||||||
* @implemented
|
* @implemented
|
||||||
*/
|
*/
|
||||||
BOOL WINAPI
|
BOOL
|
||||||
|
WINAPI
|
||||||
|
DECLSPEC_HOTPATCH
|
||||||
SetWindowTextW(HWND hWnd,
|
SetWindowTextW(HWND hWnd,
|
||||||
LPCWSTR lpString)
|
LPCWSTR lpString)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue