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
ccfa33b0
Commit
ccfa33b0
authored
Nov 30, 2022
by
Paul Gofman
Committed by
Alexandre Julliard
Dec 01, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Add stub for GetPointerInfo().
parent
2084f8bc
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
2 deletions
+20
-2
misc.c
dlls/user32/misc.c
+8
-0
input.c
dlls/user32/tests/input.c
+11
-2
user32.spec
dlls/user32/user32.spec
+1
-0
No files found.
dlls/user32/misc.c
View file @
ccfa33b0
...
...
@@ -501,6 +501,14 @@ BOOL WINAPI GetPointerType(UINT32 id, POINTER_INPUT_TYPE *type)
return
TRUE
;
}
BOOL
WINAPI
GetPointerInfo
(
UINT32
id
,
POINTER_INFO
*
info
)
{
FIXME
(
"(%d %p): stub
\n
"
,
id
,
info
);
SetLastError
(
ERROR_INVALID_PARAMETER
);
return
FALSE
;
}
LRESULT
WINAPI
ImeWndProcA
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
if
(
!
imm_ime_wnd_proc
)
return
DefWindowProcA
(
hwnd
,
msg
,
wParam
,
lParam
);
...
...
dlls/user32/tests/input.c
View file @
ccfa33b0
...
...
@@ -83,6 +83,7 @@ static struct {
static
BOOL
(
WINAPI
*
pGetCurrentInputMessageSource
)(
INPUT_MESSAGE_SOURCE
*
source
);
static
BOOL
(
WINAPI
*
pGetPointerType
)(
UINT32
,
POINTER_INPUT_TYPE
*
);
static
BOOL
(
WINAPI
*
pGetPointerInfo
)(
UINT32
,
POINTER_INFO
*
);
static
int
(
WINAPI
*
pGetMouseMovePointsEx
)
(
UINT
,
LPMOUSEMOVEPOINT
,
LPMOUSEMOVEPOINT
,
int
,
DWORD
);
static
UINT
(
WINAPI
*
pGetRawInputDeviceList
)
(
PRAWINPUTDEVICELIST
,
PUINT
,
UINT
);
static
UINT
(
WINAPI
*
pGetRawInputDeviceInfoW
)
(
HANDLE
,
UINT
,
void
*
,
UINT
*
);
...
...
@@ -150,6 +151,7 @@ static void init_function_pointers(void)
GET_PROC
(
GetCurrentInputMessageSource
);
GET_PROC
(
GetMouseMovePointsEx
);
GET_PROC
(
GetPointerInfo
);
GET_PROC
(
GetPointerType
);
GET_PROC
(
GetRawInputDeviceList
);
GET_PROC
(
GetRawInputDeviceInfoW
);
...
...
@@ -4440,10 +4442,11 @@ static void test_input_message_source(void)
UnregisterClassA
(
cls
.
lpszClassName
,
GetModuleHandleA
(
0
)
);
}
static
void
test_
GetPointerType
(
void
)
static
void
test_
pointer_info
(
void
)
{
BOOL
ret
;
POINTER_INPUT_TYPE
type
=
-
1
;
POINTER_INFO
info
;
UINT
id
=
0
;
SetLastError
(
0xdeadbeef
);
...
...
@@ -4463,6 +4466,12 @@ static void test_GetPointerType(void)
ret
=
pGetPointerType
(
id
,
&
type
);
ok
(
ret
,
"GetPointerType failed, got type %ld for %u.
\n
"
,
type
,
id
);
ok
(
type
==
PT_MOUSE
,
" type %ld
\n
"
,
type
);
/* GetPointerInfo always fails unless the app receives WM_POINTER messages. */
SetLastError
(
0xdeadbeef
);
ret
=
pGetPointerInfo
(
id
,
&
info
);
ok
(
!
ret
,
"succeeded.
\n
"
);
ok
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"got %lu.
\n
"
,
GetLastError
());
}
static
void
test_UnregisterDeviceNotification
(
void
)
...
...
@@ -4643,7 +4652,7 @@ START_TEST(input)
SetCursorPos
(
pos
.
x
,
pos
.
y
);
if
(
pGetPointerType
)
test_
GetPointerType
();
test_
pointer_info
();
else
win_skip
(
"GetPointerType is not available
\n
"
);
...
...
dlls/user32/user32.spec
View file @
ccfa33b0
...
...
@@ -359,6 +359,7 @@
@ stdcall GetParent(long)
@ stdcall GetPhysicalCursorPos(ptr)
@ stdcall GetPointerDevices(ptr ptr)
@ stdcall GetPointerInfo(long ptr)
@ stdcall GetPointerType(long ptr)
@ stdcall GetPointerTouchInfo(long ptr)
@ stdcall GetPointerTouchInfoHistory(long ptr ptr)
...
...
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