Commit ccfa33b0 authored by Paul Gofman's avatar Paul Gofman Committed by Alexandre Julliard

user32: Add stub for GetPointerInfo().

parent 2084f8bc
...@@ -501,6 +501,14 @@ BOOL WINAPI GetPointerType(UINT32 id, POINTER_INPUT_TYPE *type) ...@@ -501,6 +501,14 @@ BOOL WINAPI GetPointerType(UINT32 id, POINTER_INPUT_TYPE *type)
return TRUE; 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 ) LRESULT WINAPI ImeWndProcA( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam )
{ {
if (!imm_ime_wnd_proc) return DefWindowProcA(hwnd, msg, wParam, lParam); if (!imm_ime_wnd_proc) return DefWindowProcA(hwnd, msg, wParam, lParam);
......
...@@ -83,6 +83,7 @@ static struct { ...@@ -83,6 +83,7 @@ static struct {
static BOOL (WINAPI *pGetCurrentInputMessageSource)( INPUT_MESSAGE_SOURCE *source ); static BOOL (WINAPI *pGetCurrentInputMessageSource)( INPUT_MESSAGE_SOURCE *source );
static BOOL (WINAPI *pGetPointerType)(UINT32, POINTER_INPUT_TYPE*); 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 int (WINAPI *pGetMouseMovePointsEx) (UINT, LPMOUSEMOVEPOINT, LPMOUSEMOVEPOINT, int, DWORD);
static UINT (WINAPI *pGetRawInputDeviceList) (PRAWINPUTDEVICELIST, PUINT, UINT); static UINT (WINAPI *pGetRawInputDeviceList) (PRAWINPUTDEVICELIST, PUINT, UINT);
static UINT (WINAPI *pGetRawInputDeviceInfoW) (HANDLE, UINT, void *, UINT *); static UINT (WINAPI *pGetRawInputDeviceInfoW) (HANDLE, UINT, void *, UINT *);
...@@ -150,6 +151,7 @@ static void init_function_pointers(void) ...@@ -150,6 +151,7 @@ static void init_function_pointers(void)
GET_PROC(GetCurrentInputMessageSource); GET_PROC(GetCurrentInputMessageSource);
GET_PROC(GetMouseMovePointsEx); GET_PROC(GetMouseMovePointsEx);
GET_PROC(GetPointerInfo);
GET_PROC(GetPointerType); GET_PROC(GetPointerType);
GET_PROC(GetRawInputDeviceList); GET_PROC(GetRawInputDeviceList);
GET_PROC(GetRawInputDeviceInfoW); GET_PROC(GetRawInputDeviceInfoW);
...@@ -4440,10 +4442,11 @@ static void test_input_message_source(void) ...@@ -4440,10 +4442,11 @@ static void test_input_message_source(void)
UnregisterClassA( cls.lpszClassName, GetModuleHandleA(0) ); UnregisterClassA( cls.lpszClassName, GetModuleHandleA(0) );
} }
static void test_GetPointerType(void) static void test_pointer_info(void)
{ {
BOOL ret; BOOL ret;
POINTER_INPUT_TYPE type = -1; POINTER_INPUT_TYPE type = -1;
POINTER_INFO info;
UINT id = 0; UINT id = 0;
SetLastError(0xdeadbeef); SetLastError(0xdeadbeef);
...@@ -4463,6 +4466,12 @@ static void test_GetPointerType(void) ...@@ -4463,6 +4466,12 @@ static void test_GetPointerType(void)
ret = pGetPointerType(id, &type); ret = pGetPointerType(id, &type);
ok(ret, "GetPointerType failed, got type %ld for %u.\n", type, id ); ok(ret, "GetPointerType failed, got type %ld for %u.\n", type, id );
ok(type == PT_MOUSE, " type %ld\n", type ); 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) static void test_UnregisterDeviceNotification(void)
...@@ -4643,7 +4652,7 @@ START_TEST(input) ...@@ -4643,7 +4652,7 @@ START_TEST(input)
SetCursorPos( pos.x, pos.y ); SetCursorPos( pos.x, pos.y );
if(pGetPointerType) if(pGetPointerType)
test_GetPointerType(); test_pointer_info();
else else
win_skip("GetPointerType is not available\n"); win_skip("GetPointerType is not available\n");
......
...@@ -359,6 +359,7 @@ ...@@ -359,6 +359,7 @@
@ stdcall GetParent(long) @ stdcall GetParent(long)
@ stdcall GetPhysicalCursorPos(ptr) @ stdcall GetPhysicalCursorPos(ptr)
@ stdcall GetPointerDevices(ptr ptr) @ stdcall GetPointerDevices(ptr ptr)
@ stdcall GetPointerInfo(long ptr)
@ stdcall GetPointerType(long ptr) @ stdcall GetPointerType(long ptr)
@ stdcall GetPointerTouchInfo(long ptr) @ stdcall GetPointerTouchInfo(long ptr)
@ stdcall GetPointerTouchInfoHistory(long ptr ptr) @ stdcall GetPointerTouchInfoHistory(long ptr ptr)
......
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