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
acebc001
Commit
acebc001
authored
Sep 12, 2009
by
Stefan Dösinger
Committed by
Alexandre Julliard
Oct 14, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Make some functions hookable.
parent
282cc71a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
15 deletions
+15
-15
cursoricon.c
dlls/user32/cursoricon.c
+4
-4
input.c
dlls/user32/input.c
+9
-9
message.c
dlls/user32/message.c
+2
-2
No files found.
dlls/user32/cursoricon.c
View file @
acebc001
...
...
@@ -1803,7 +1803,7 @@ DWORD WINAPI DumpIcon16( SEGPTR pInfo, WORD *lpLen,
* RETURNS
* A handle to the previous cursor shape.
*/
HCURSOR
WINAPI
SetCursor
(
HCURSOR
hCursor
/* [in] Handle of cursor to show */
)
HCURSOR
WINAPI
DECLSPEC_HOTPATCH
SetCursor
(
HCURSOR
hCursor
/* [in] Handle of cursor to show */
)
{
struct
user_thread_info
*
thread_info
=
get_user_thread_info
();
HCURSOR
hOldCursor
;
...
...
@@ -1824,7 +1824,7 @@ HCURSOR WINAPI SetCursor( HCURSOR hCursor /* [in] Handle of cursor to show */ )
/***********************************************************************
* ShowCursor (USER32.@)
*/
INT
WINAPI
ShowCursor
(
BOOL
bShow
)
INT
WINAPI
DECLSPEC_HOTPATCH
ShowCursor
(
BOOL
bShow
)
{
struct
user_thread_info
*
thread_info
=
get_user_thread_info
();
...
...
@@ -1858,7 +1858,7 @@ HCURSOR WINAPI GetCursor(void)
/***********************************************************************
* ClipCursor (USER32.@)
*/
BOOL
WINAPI
ClipCursor
(
const
RECT
*
rect
)
BOOL
WINAPI
DECLSPEC_HOTPATCH
ClipCursor
(
const
RECT
*
rect
)
{
RECT
virt
;
...
...
@@ -1881,7 +1881,7 @@ BOOL WINAPI ClipCursor( const RECT *rect )
/***********************************************************************
* GetClipCursor (USER32.@)
*/
BOOL
WINAPI
GetClipCursor
(
RECT
*
rect
)
BOOL
WINAPI
DECLSPEC_HOTPATCH
GetClipCursor
(
RECT
*
rect
)
{
/* If this is first time - initialize the rect */
if
(
IsRectEmpty
(
&
CURSOR_ClipRect
))
ClipCursor
(
NULL
);
...
...
dlls/user32/input.c
View file @
acebc001
...
...
@@ -192,7 +192,7 @@ void WINAPI mouse_event( DWORD dwFlags, DWORD dx, DWORD dy,
/***********************************************************************
* GetCursorPos (USER32.@)
*/
BOOL
WINAPI
GetCursorPos
(
POINT
*
pt
)
BOOL
WINAPI
DECLSPEC_HOTPATCH
GetCursorPos
(
POINT
*
pt
)
{
if
(
!
pt
)
return
FALSE
;
return
USER_Driver
->
pGetCursorPos
(
pt
);
...
...
@@ -215,7 +215,7 @@ BOOL WINAPI GetCursorInfo( PCURSORINFO pci )
/***********************************************************************
* SetCursorPos (USER32.@)
*/
BOOL
WINAPI
SetCursorPos
(
INT
x
,
INT
y
)
BOOL
WINAPI
DECLSPEC_HOTPATCH
SetCursorPos
(
INT
x
,
INT
y
)
{
return
USER_Driver
->
pSetCursorPos
(
x
,
y
);
}
...
...
@@ -224,7 +224,7 @@ BOOL WINAPI SetCursorPos( INT x, INT y )
/**********************************************************************
* SetCapture (USER32.@)
*/
HWND
WINAPI
SetCapture
(
HWND
hwnd
)
HWND
WINAPI
DECLSPEC_HOTPATCH
SetCapture
(
HWND
hwnd
)
{
HWND
previous
;
...
...
@@ -236,7 +236,7 @@ HWND WINAPI SetCapture( HWND hwnd )
/**********************************************************************
* ReleaseCapture (USER32.@)
*/
BOOL
WINAPI
ReleaseCapture
(
void
)
BOOL
WINAPI
DECLSPEC_HOTPATCH
ReleaseCapture
(
void
)
{
BOOL
ret
=
set_capture_window
(
0
,
0
,
NULL
);
...
...
@@ -271,7 +271,7 @@ HWND WINAPI GetCapture(void)
* bit set to 1 if currently pressed, low-order bit set to 1 if key has
* been pressed.
*/
SHORT
WINAPI
GetAsyncKeyState
(
INT
nKey
)
SHORT
WINAPI
DECLSPEC_HOTPATCH
GetAsyncKeyState
(
INT
nKey
)
{
if
(
nKey
<
0
||
nKey
>
256
)
return
0
;
...
...
@@ -370,7 +370,7 @@ UINT WINAPI GetRawInputDeviceList(PRAWINPUTDEVICELIST pRawInputDeviceList, PUINT
/******************************************************************
* RegisterRawInputDevices (USER32.@)
*/
BOOL
WINAPI
RegisterRawInputDevices
(
PRAWINPUTDEVICE
pRawInputDevices
,
UINT
uiNumDevices
,
UINT
cbSize
)
BOOL
WINAPI
DECLSPEC_HOTPATCH
RegisterRawInputDevices
(
PRAWINPUTDEVICE
pRawInputDevices
,
UINT
uiNumDevices
,
UINT
cbSize
)
{
FIXME
(
"(pRawInputDevices=%p, uiNumDevices=%d, cbSize=%d) stub!
\n
"
,
pRawInputDevices
,
uiNumDevices
,
cbSize
);
...
...
@@ -393,7 +393,7 @@ UINT WINAPI GetRawInputData(HRAWINPUT hRawInput, UINT uiCommand, LPVOID pData, P
/******************************************************************
* GetRawInputBuffer (USER32.@)
*/
UINT
WINAPI
GetRawInputBuffer
(
PRAWINPUT
pData
,
PUINT
pcbSize
,
UINT
cbSizeHeader
)
UINT
WINAPI
DECLSPEC_HOTPATCH
GetRawInputBuffer
(
PRAWINPUT
pData
,
PUINT
pcbSize
,
UINT
cbSizeHeader
)
{
FIXME
(
"(pData=%p, pcbSize=%p, cbSizeHeader=%d) stub!
\n
"
,
pData
,
pcbSize
,
cbSizeHeader
);
...
...
@@ -474,7 +474,7 @@ BOOL WINAPI AttachThreadInput( DWORD from, DWORD to, BOOL attach )
* keyboard-input message. This function retrieves the state of the key
* at the time the input message was generated.
*/
SHORT
WINAPI
GetKeyState
(
INT
vkey
)
SHORT
WINAPI
DECLSPEC_HOTPATCH
GetKeyState
(
INT
vkey
)
{
SHORT
retval
=
0
;
...
...
@@ -493,7 +493,7 @@ SHORT WINAPI GetKeyState(INT vkey)
/**********************************************************************
* GetKeyboardState (USER32.@)
*/
BOOL
WINAPI
GetKeyboardState
(
LPBYTE
state
)
BOOL
WINAPI
DECLSPEC_HOTPATCH
GetKeyboardState
(
LPBYTE
state
)
{
BOOL
ret
;
...
...
dlls/user32/message.c
View file @
acebc001
...
...
@@ -3059,7 +3059,7 @@ BOOL WINAPI TranslateMessage( const MSG *msg )
*
* See DispatchMessageW.
*/
LRESULT
WINAPI
DispatchMessageA
(
const
MSG
*
msg
)
LRESULT
WINAPI
D
ECLSPEC_HOTPATCH
D
ispatchMessageA
(
const
MSG
*
msg
)
{
LRESULT
retval
;
...
...
@@ -3130,7 +3130,7 @@ LRESULT WINAPI DispatchMessageA( const MSG* msg )
* ECMA-234, Win32
*
*/
LRESULT
WINAPI
DispatchMessageW
(
const
MSG
*
msg
)
LRESULT
WINAPI
D
ECLSPEC_HOTPATCH
D
ispatchMessageW
(
const
MSG
*
msg
)
{
LRESULT
retval
;
...
...
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