ReactOS  0.4.15-dev-5089-g555bec6
SetCursorPos.c File Reference
#include "precomp.h"
Include dependency graph for SetCursorPos.c:

Go to the source code of this file.

Classes

struct  _test_info
 

Macros

#define TEST(s, x, y)   ok(y == x, "%d: %s called %d times instead of %d\n",i,s, y,x);
 

Functions

LRESULT CALLBACK MouseLLHookProc (int nCode, WPARAM wParam, LPARAM lParam)
 
LRESULT CALLBACK MouseHookProc (int nCode, WPARAM wParam, LPARAM lParam)
 
static LRESULT CALLBACK WndProc (HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
 
static HWND CreateTestWindow ()
 
void Test_SetCursorPos ()
 
void Test_DesktopAccess ()
 
 START_TEST (SetCursorPos)
 

Variables

static HHOOK hMouseHookLL
 
static HHOOK hMouseHook
 
static struct _test_info info []
 
static struct _test_info results [8]
 
static int test_no = 0
 

Macro Definition Documentation

◆ TEST

#define TEST (   s,
  x,
  y 
)    ok(y == x, "%d: %s called %d times instead of %d\n",i,s, y,x);

Function Documentation

◆ CreateTestWindow()

static HWND CreateTestWindow ( )
static

Definition at line 55 of file SetCursorPos.c.

56 {
57  MSG msg;
58  WNDCLASSA wclass;
60  HWND hWndTest;
61 
62  wclass.lpszClassName = "MouseInputTestClass";
63  wclass.style = CS_HREDRAW | CS_VREDRAW;
64  wclass.lpfnWndProc = WndProc;
65  wclass.hInstance = hInstance;
66  wclass.hIcon = LoadIconA( 0, IDI_APPLICATION );
67  wclass.hCursor = LoadCursorA( NULL, IDC_ARROW );
68  wclass.hbrBackground = (HBRUSH)( COLOR_WINDOW + 1 );
69  wclass.lpszMenuName = 0;
70  wclass.cbClsExtra = 0;
71  wclass.cbWndExtra = 0;
72  RegisterClassA( &wclass );
73  /* create the test window that will receive the keystrokes */
74  hWndTest = CreateWindowA( wclass.lpszClassName, "MouseInputTestTest",
75  WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, 0, 100, 100,
76  NULL, NULL, hInstance, NULL);
77  assert( hWndTest );
83 
84  /* flush pending messages */
85  while (PeekMessage( &msg, 0, 0, 0, PM_REMOVE )) DispatchMessageA( &msg );
86 
87  return hWndTest;
88 }
LRESULT WINAPI DispatchMessageA(_In_ const MSG *)
#define PeekMessage
Definition: winuser.h:5820
#define SW_SHOWMAXIMIZED
Definition: winuser.h:767
TW_UINT32 TW_UINT16 TW_UINT16 MSG
Definition: twain.h:1827
BOOL WINAPI UpdateWindow(_In_ HWND)
int cbClsExtra
Definition: winuser.h:3155
#define assert(x)
Definition: debug.h:53
#define CS_HREDRAW
Definition: winuser.h:648
LPCSTR lpszMenuName
Definition: winuser.h:3161
#define HWND_TOPMOST
Definition: winuser.h:1198
HWND WINAPI SetFocus(_In_opt_ HWND)
#define IDI_APPLICATION
Definition: winuser.h:699
HBRUSH hbrBackground
Definition: winuser.h:3160
BOOL WINAPI ShowWindow(_In_ HWND, _In_ int)
#define COLOR_WINDOW
Definition: winuser.h:912
HICON WINAPI LoadIconA(_In_opt_ HINSTANCE, _In_ LPCSTR)
Definition: cursoricon.c:2029
int cbWndExtra
Definition: winuser.h:3156
HINSTANCE hInstance
Definition: charmap.c:20
#define CreateWindowA(a, b, c, d, e, f, g, h, i, j, k)
Definition: winuser.h:4305
HCURSOR hCursor
Definition: winuser.h:3159
#define CW_USEDEFAULT
Definition: winuser.h:225
static HWND hWndTest
Definition: input.c:63
#define CS_VREDRAW
Definition: winuser.h:653
HMODULE WINAPI DECLSPEC_HOTPATCH GetModuleHandleA(LPCSTR lpModuleName)
Definition: loader.c:812
LPCSTR lpszClassName
Definition: winuser.h:3162
static LRESULT CALLBACK WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
Definition: SetCursorPos.c:47
HCURSOR WINAPI LoadCursorA(_In_opt_ HINSTANCE, _In_ LPCSTR)
Definition: cursoricon.c:2059
UINT style
Definition: winuser.h:3153
#define SWP_NOSIZE
Definition: winuser.h:1235
HINSTANCE hInstance
Definition: winuser.h:3157
#define NULL
Definition: types.h:112
WNDPROC lpfnWndProc
Definition: winuser.h:3154
#define msg(x)
Definition: auth_time.c:54
#define IDC_ARROW
Definition: winuser.h:682
#define WS_OVERLAPPEDWINDOW
Definition: pedump.c:637
BOOL WINAPI SetForegroundWindow(_In_ HWND)
#define SWP_NOMOVE
Definition: winuser.h:1234
BOOL WINAPI SetWindowPos(_In_ HWND, _In_opt_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ UINT)
#define PM_REMOVE
Definition: winuser.h:1186
ATOM WINAPI RegisterClassA(_In_ CONST WNDCLASSA *)
HICON hIcon
Definition: winuser.h:3158

Referenced by Test_SetCursorPos().

◆ MouseHookProc()

LRESULT CALLBACK MouseHookProc ( int  nCode,
WPARAM  wParam,
LPARAM  lParam 
)

Definition at line 41 of file SetCursorPos.c.

42 {
43  results[test_no].hook_called++;
44  return CallNextHookEx(hMouseHook, nCode, wParam, lParam);
45 }
static int test_no
Definition: SetCursorPos.c:32
WPARAM wParam
Definition: combotst.c:138
static struct _test_info results[8]
Definition: SetCursorPos.c:31
static HHOOK hMouseHook
Definition: SetCursorPos.c:10
LRESULT WINAPI CallNextHookEx(_In_opt_ HHOOK, _In_ int, _In_ WPARAM, _In_ LPARAM)
LPARAM lParam
Definition: combotst.c:139

Referenced by Test_SetCursorPos().

◆ MouseLLHookProc()

LRESULT CALLBACK MouseLLHookProc ( int  nCode,
WPARAM  wParam,
LPARAM  lParam 
)

Definition at line 35 of file SetCursorPos.c.

36 {
37  results[test_no].ll_hook_called++;
38  return CallNextHookEx(hMouseHookLL, nCode, wParam, lParam);
39 }
static int test_no
Definition: SetCursorPos.c:32
static HHOOK hMouseHookLL
Definition: SetCursorPos.c:10
WPARAM wParam
Definition: combotst.c:138
static struct _test_info results[8]
Definition: SetCursorPos.c:31
LRESULT WINAPI CallNextHookEx(_In_opt_ HHOOK, _In_ int, _In_ WPARAM, _In_ LPARAM)
LPARAM lParam
Definition: combotst.c:139

Referenced by Test_SetCursorPos().

◆ START_TEST()

START_TEST ( SetCursorPos  )

Definition at line 200 of file SetCursorPos.c.

201 {
204 }
void Test_SetCursorPos()
Definition: SetCursorPos.c:90
void Test_DesktopAccess()
Definition: SetCursorPos.c:159

◆ Test_DesktopAccess()

void Test_DesktopAccess ( )

Definition at line 159 of file SetCursorPos.c.

160 {
161  HDESK hDesk, hDeskInitial;
162  POINT curPoint, initialPoint;
163  BOOL ret;
164 
165  hDeskInitial = GetThreadDesktop(GetCurrentThreadId());
166  ok(hDeskInitial != NULL, "Failed to retrieve the initial desktop\n");
167 
168  ret = GetCursorPos(&initialPoint);
169  ok(ret == TRUE, "GetCursorPos should succed\n");
170 
171  hDesk = CreateDesktopW(L"testDesktop", NULL, NULL, 0, 0x01ff, NULL);
172  ok(hDesk != 0, "Failed to create a new desktop\n");
173  SetThreadDesktop(hDesk);
174  ok(GetThreadDesktop(GetCurrentThreadId()) == hDesk, "SetThreadDesktop had no effect\n");
175 
176  SetLastError(0xdeadbeef);
177 
178  ret = GetCursorPos(&curPoint);
179  ok(ret == FALSE, "GetCursorPos should fail\n");
180 
181  ok(GetLastError() == ERROR_ACCESS_DENIED || GetLastError() == 0xdeadbeef,
182  "Expected ERROR_ACCESS_DENIED or 0xdeadbeef, got 0x%lx\n", GetLastError());
183  SetLastError(0xdeadbeef);
184 
185  ret = SetCursorPos(2,2);
186  //ok(ret == FALSE, "SetCursorPos should fail\n"); // FIXME: fails on WHS testbot
187 
188  ok(GetLastError() == 0xdeadbeef, "Wrong last error, got 0x%lx\n", GetLastError());
189 
190  ret = GetCursorPos(&curPoint);
191  ok(ret == FALSE, "GetCursorPos should fail\n");
192 
193  SetThreadDesktop(hDeskInitial);
194 
195  ret = GetCursorPos(&curPoint);
196  ok(ret == TRUE, "GetCursorPos should succed\n");
197  //ok(curPoint.x == initialPoint.x && curPoint.y == initialPoint.y, "Mouse position changed\n");
198 }
#define TRUE
Definition: types.h:120
HDESK WINAPI GetThreadDesktop(_In_ DWORD)
DWORD WINAPI GetLastError(VOID)
Definition: except.c:1040
BOOL WINAPI GetCursorPos(_Out_ LPPOINT)
Definition: cursoricon.c:2639
BOOL WINAPI SetThreadDesktop(_In_ HDESK)
#define L(x)
Definition: ntvdm.h:50
#define FALSE
Definition: types.h:117
#define ERROR_ACCESS_DENIED
Definition: compat.h:97
unsigned int BOOL
Definition: ntddk_ex.h:94
DWORD WINAPI GetCurrentThreadId(VOID)
Definition: thread.c:459
BOOL WINAPI SetCursorPos(_In_ int, _In_ int)
Definition: cursoricon.c:2631
#define SetLastError(x)
Definition: compat.h:611
int ret
#define ok(value,...)
Definition: atltest.h:57
#define NULL
Definition: types.h:112
HDESK WINAPI CreateDesktopW(LPCWSTR lpszDesktop, LPCWSTR lpszDevice, LPDEVMODEW pDevmode, DWORD dwFlags, ACCESS_MASK dwDesiredAccess, LPSECURITY_ATTRIBUTES lpsa)
Definition: desktop.c:473

Referenced by START_TEST().

◆ Test_SetCursorPos()

void Test_SetCursorPos ( )

Definition at line 90 of file SetCursorPos.c.

91 {
92  HWND hwnd;
93  MSG msg;
94  int i;
95 
98  ok(hMouseHook!=NULL,"failed to set hook\n");
99  ok(hMouseHookLL!=NULL,"failed to set hook\n");
100 
101  test_no = 0;
102  SetCursorPos(1,1);
103  while (PeekMessage( &msg, 0, 0, 0, PM_REMOVE )) DispatchMessageA( &msg );
104 
105  test_no = 1;
106  mouse_event(MOUSEEVENTF_MOVE, 2,2, 0,0);
107  while (PeekMessage( &msg, 0, 0, 0, PM_REMOVE )) DispatchMessageA( &msg );
108 
110  SetCapture(hwnd);
111 
112  test_no = 2;
113  SetCursorPos(50,50);
114  while (PeekMessage( &msg, 0, 0, 0, PM_REMOVE )) DispatchMessageA( &msg );
115 
116  test_no = 3;
117  mouse_event(MOUSEEVENTF_MOVE, 100,100, 0,0);
118  while (PeekMessage( &msg, 0, 0, 0, PM_REMOVE )) DispatchMessageA( &msg );
119 
120  test_no = 4;
121  SetCursorPos(50,50);
122  SetCursorPos(60,60);
123  while (PeekMessage( &msg, 0, 0, 0, PM_REMOVE )) DispatchMessageA( &msg );
124 
125  test_no = 5;
126  SetCursorPos(50,50);
127  while (PeekMessage( &msg, 0, 0, 0, PM_REMOVE )) DispatchMessageA( &msg );
128  SetCursorPos(60,60);
129  while (PeekMessage( &msg, 0, 0, 0, PM_REMOVE )) DispatchMessageA( &msg );
130 
131  test_no = 6;
132  mouse_event(MOUSEEVENTF_MOVE, 50,50, 0,0);
133  mouse_event(MOUSEEVENTF_MOVE, 60,60, 0,0);
134  while (PeekMessage( &msg, 0, 0, 0, PM_REMOVE )) DispatchMessageA( &msg );
135 
136  test_no = 7;
137  mouse_event(MOUSEEVENTF_MOVE, 50,50, 0,0);
138  while (PeekMessage( &msg, 0, 0, 0, PM_REMOVE )) DispatchMessageA( &msg );
139  mouse_event(MOUSEEVENTF_MOVE, 60,60, 0,0);
140  while (PeekMessage( &msg, 0, 0, 0, PM_REMOVE )) DispatchMessageA( &msg );
141 
142  for(i = 0; i< 8; i++)
143  {
144 #define TEST(s,x,y) ok(y == x, "%d: %s called %d times instead of %d\n",i,s, y,x);
145  TEST("WH_MOUSE_LL", info[i].ll_hook_called, results[i].ll_hook_called);
146  /* WH_MOUSE results vary greatly among windows versions */
147  //TEST("WH_MOUSE", info[i].hook_called, results[i].hook_called);
148  //TEST("WM_MOUSEMOVE", info[i].mouse_move_called, results[i].mouse_move_called);
149  }
150 
151  SetCapture(NULL);
153 
156 
157 }
static int test_no
Definition: SetCursorPos.c:32
#define WH_MOUSE
Definition: winuser.h:37
LRESULT WINAPI DispatchMessageA(_In_ const MSG *)
#define PeekMessage
Definition: winuser.h:5820
static HHOOK hMouseHookLL
Definition: SetCursorPos.c:10
TW_UINT32 TW_UINT16 TW_UINT16 MSG
Definition: twain.h:1827
BOOL WINAPI DestroyWindow(_In_ HWND)
LRESULT CALLBACK MouseLLHookProc(int nCode, WPARAM wParam, LPARAM lParam)
Definition: SetCursorPos.c:35
#define WH_MOUSE_LL
Definition: winuser.h:44
int ll_hook_called
Definition: SetCursorPos.c:14
void WINAPI mouse_event(_In_ DWORD, _In_ DWORD, _In_ DWORD, _In_ DWORD, _In_ ULONG_PTR)
DWORD WINAPI GetCurrentThreadId(VOID)
Definition: thread.c:459
LRESULT CALLBACK MouseHookProc(int nCode, WPARAM wParam, LPARAM lParam)
Definition: SetCursorPos.c:41
BOOL WINAPI SetCursorPos(_In_ int, _In_ int)
Definition: cursoricon.c:2631
#define SetWindowsHookEx
Definition: winuser.h:5846
static struct _test_info results[8]
Definition: SetCursorPos.c:31
static HHOOK hMouseHook
Definition: SetCursorPos.c:10
HMODULE WINAPI DECLSPEC_HOTPATCH GetModuleHandleA(LPCSTR lpModuleName)
Definition: loader.c:812
#define TEST(s, x, y)
BOOL WINAPI UnhookWindowsHookEx(_In_ HHOOK)
HWND WINAPI SetCapture(_In_ HWND hWnd)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
#define MOUSEEVENTF_MOVE
Definition: winuser.h:1173
#define ok(value,...)
Definition: atltest.h:57
#define NULL
Definition: types.h:112
#define msg(x)
Definition: auth_time.c:54
HHOOK WINAPI SetWindowsHookExW(_In_ int, _In_ HOOKPROC, _In_opt_ HINSTANCE, _In_ DWORD)
static HWND CreateTestWindow()
Definition: SetCursorPos.c:55
HMODULE WINAPI GetModuleHandleW(LPCWSTR lpModuleName)
Definition: loader.c:838
#define PM_REMOVE
Definition: winuser.h:1186
_In_ LONG _In_ HWND hwnd
Definition: winddi.h:4022

Referenced by START_TEST().

◆ WndProc()

static LRESULT CALLBACK WndProc ( HWND  hWnd,
UINT  msg,
WPARAM  wParam,
LPARAM  lParam 
)
static

Definition at line 47 of file SetCursorPos.c.

48 {
49  if(msg == WM_MOUSEMOVE)
50  results[test_no].mouse_move_called++;
51 
52  return DefWindowProcA( hWnd, msg, wParam, lParam );
53 }
static int test_no
Definition: SetCursorPos.c:32
HWND hWnd
Definition: settings.c:17
WPARAM wParam
Definition: combotst.c:138
static struct _test_info results[8]
Definition: SetCursorPos.c:31
LRESULT WINAPI DefWindowProcA(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
#define WM_MOUSEMOVE
Definition: winuser.h:1765
#define msg(x)
Definition: auth_time.c:54
LPARAM lParam
Definition: combotst.c:139

Referenced by CreateTestWindow().

Variable Documentation

◆ hMouseHook

HHOOK hMouseHook
static

Definition at line 10 of file SetCursorPos.c.

Referenced by MouseHookProc(), and Test_SetCursorPos().

◆ hMouseHookLL

HHOOK hMouseHookLL
static

Definition at line 10 of file SetCursorPos.c.

Referenced by MouseLLHookProc(), and Test_SetCursorPos().

◆ info

Initial value:
=
{
{0,0,0},
{1,1,0},
{0,1,1},
{1,1,1},
{0,1,1},
{0,2,2},
{2,1,1},
{2,2,2},
}

Definition at line 19 of file SetCursorPos.c.

Referenced by __is_regular_file(), _chsize_s(), _CorExeMain(), _tWinMain(), ACTION_CallScript(), ACTION_FinishCustomActions(), ActiveScriptSite_OnScriptError(), add_func_info(), add_with_alpha(), alloc_inf_info(), alloc_msiobject(), alpha_blend_image(), CMergedFolder::BindToObject(), CCommonFolder< CRegistryFolder, RegPidlEntry, CRegistryFolderExtractIcon >::BindToObject(), BrsFolderDlgProc(), build_systeminfo_tree(), cache_across_threads_test(), CalcChildScroll(), callback_child(), CascadeWindows(), cb(), cbt_hook_proc(), CDataEncodeMsg_GetParam(), CDecodeMsg_DecodeContent(), CEnvelopedEncodeMsg_GetParam(), cert_mgr_do_export(), cert_name_to_str_with_indent(), CertContext_SetKeyProvInfo(), CertEnumSystemStore(), CertGetNameStringW(), CertGetPublicKeyLength(), CertNameToStrA(), CFn_WMPaint(), CMenuToolbarBase::ChangeHotItem(), CHashEncodeMsg_GetParam(), check_color_table(), check_cursor_data(), check_dds_pixel_format_(), check_dib_size(), check_icon_size(), check_menu_item_info(), CHSourceDlgProc(), cid_face_done(), ClassDeviceControl(), ClassFactoryImpl_Constructor(), ClasspInitializePolling(), ClasspInterpretGesnData(), ClasspMediaChangeDetectionCompletion(), clnt_dg_control(), clnt_vc_control(), ClrCreateManagedInstance(), CoInternetCombineIUri(), CoInternetCombineUrlEx(), CoInternetParseIUri(), compare_crl_issued_by(), compile_shader(), ConsolePager(), CExplorerBand::ContextMenuHack(), Control_LoadApplet(), CorBindToRuntimeEx(), CorBindToRuntimeHost(), cp_from_charset_string(), crash_and_debug(), crash_and_winedbg(), Window::Create(), StartMenu::Create(), create_bitmap(), create_bitmap_from_source_rect(), Window::create_controller(), create_file_test(), create_func_disp(), create_input_pin(), Window::create_mdi_child(), create_server_process(), create_stream_from_map(), create_summaryinfo(), create_writepipe_process(), CreateComponentInfo(), CreateCursor(), CreateHelpViewer(), CredReadW(), CRYPT_AsnDecodeCertInfo(), CRYPT_AsnDecodeCMSSignerInfo(), CRYPT_AsnDecodeName(), CRYPT_AsnDecodeObjectIdentifier(), CRYPT_AsnDecodePKCSContentInfo(), CRYPT_AsnDecodePKCSSignerInfo(), CRYPT_AsnDecodePubKeyInfo(), CRYPT_AsnDecodeUnicodeName(), CRYPT_AsnEncodeCertPolicy(), CRYPT_AsnEncodeCRLInfo(), CRYPT_CacheSIP(), CRYPT_CreateFileStore(), CRYPT_DecodeBasicConstraints(), CRYPT_FormatAltName(), CRYPT_FormatAuthorityInfoAccess(), CRYPT_FormatAuthorityKeyId2(), CRYPT_FormatBasicConstraints2(), CRYPT_FormatCRLDistPoints(), CRYPT_GetIssuer(), CRYPT_GetNameConstraints(), CRYPT_GetUrlFromCRLDistPointsExt(), CRYPT_ImportEncryptedKey(), CRYPT_IsCertificateSelfSigned(), CRYPT_VerifyCertSignatureFromPublicKeyInfo(), CryptEnumOIDInfo(), CryptFindOIDInfo(), CryptHashMessage(), CryptHashToBeSigned(), CryptSignCertificate(), CryptUIDlgSelectStoreW(), CSignedEncodeMsg_GetParam(), d3drm_texture_load(), DataCache_Draw(), DataCache_GetExtent(), debug_target_init_modules_info(), DebugParseOffloadBits(), debugstr_status_info(), debugsymbols_GetModuleByIndex(), debugsymbols_GetModuleByOffset(), debugsymbols_GetModuleNameString(), debugsymbols_GetModuleParameters(), debugsymbols_GetModuleVersionInformation(), DECLARE_INTERFACE_(), detail_dlg_proc(), DIALOG_CreateControls32(), FxPkgIo::DispatchStep1(), DispatchWorker(), do_authorization(), do_msidbCustomActionTypeDll(), do_msidbCustomActionTypeScript(), do_parent(), do_register_dll(), DoInfInstallW(), DoInitAutoCompleteWithCWD(), DoTestEntry(), CExplorerBand::DragOver(), drop_window_therad(), dump_basic_constraints(), ensure_useragent(), enum_locales_proc(), enum_thread(), EnumEnhMetaFile(), enumerate_gac(), EnumerateSecurityPackagesA(), EnumerateSubkey(), EnumJoysticks(), EnumResourceLanguagesA(), EnumResourceLanguagesW(), EnumResourceNamesA(), EnumResourceNamesW(), TaskBar::EnumWndProc(), FxEventQueue::EventQueueWorker(), execute_command(), ExecuteCabW(), export_get_private_key_info(), export_private_key_dlg_proc(), FileMonikerImpl_GetTimeOfLastChange(), filesys_GetFileVersion(), fill_printer(), CMenuStaticToolbar::FillToolbar(), FilterGraph2_RenderRecurse(), find_actctx_dll(), find_action_by_guid(), find_cert_by_issuer(), find_resourceA(), find_resourceW(), find_unconnected_pin(), find_window(), CAvailableApps::FindAppByPkgName(), FindEffectiveProc(), free_oid_info(), FreeBT_DispatchDevCtrl(), FreeBT_SetWmiDataBlock(), FreeBT_SetWmiDataItem(), FsVolumeInfo(), fw_app_put_ProcessImageFileName(), FxLibraryGlobalsVerifyVersion(), get_app_version(), get_binary_type(), get_currenttimezone(), get_ea_value(), get_encoder_clsid(), get_file_version(), get_freespace(), get_handle_object(), get_icon_size(), get_ioinfo_alloc(), get_manifest_in_manifest_file(), get_manifest_in_module(), get_obj_access(), get_osarchitecture(), get_pixelformat_bpp(), get_pixelformat_info(), get_printer_ic(), get_processor_count(), get_processor_currentclockspeed(), get_processor_maxclockspeed(), get_registry_locale_info(), get_typeinfo(), CMergedFolder::GetAttributesOf(), CCommonFolder< CRegistryFolder, RegPidlEntry, CRegistryFolderExtractIcon >::GetAttributesOf(), GetBestOverlapWithMonitors(), GetCORSystemDirectory(), GetCORVersion(), CRegistryFolder::GetDetailsEx(), CNtObjectFolder::GetDetailsEx(), CMergedFolder::GetDetailsEx(), CRegistryFolder::GetDetailsOf(), CNtObjectFolder::GetDetailsOf(), CMergedFolder::GetDetailsOf(), CMergedFolder::GetDisplayNameOf(), CCommonFolder< CRegistryFolder, RegPidlEntry, CRegistryFolderExtractIcon >::GetDisplayNameOf(), CDefaultContextMenu::GetDynamicEntry(), FxRequest::GetInformation(), getInterfaceEntryByIndex(), getInterfaceEntryByName(), getInterfacePhysicalByIndex(), getInterfacePhysicalByName(), GetOpenFileNameA(), GetOpenFileNameW(), GetRequestedRuntimeInfo(), GetSaveFileNameA(), GetSaveFileNameW(), CMergedFolder::GetUIObjectOf(), CCommonFolder< CRegistryFolder, RegPidlEntry, CRegistryFolderExtractIcon >::GetUIObjectOf(), HANDLE_CustomType1(), HANDLE_CustomType17(), HANDLE_CustomType21_22(), HANDLE_CustomType37_38(), HANDLE_CustomType53_54(), HANDLE_CustomType5_6(), handle_setexattr(), handle_symlink(), HtmlHelpA(), HtmlHelpW(), HTTPREQ_QueryOption(), i386_stack_walk(), ICCVID_DriverProc(), ICLocate(), ICOpen(), ImageListImpl_GetImageRect(), ImagingFactory_CreateBitmapFromHICON(), ImmGetDescriptionA(), ImmGetDescriptionW(), ImmGetIMEFileNameA(), ImmGetIMEFileNameW(), ImmIsIME(), CConsole::Init(), init_oid_info(), init_registered_oid_info(), initialize_purpose_selection(), insert_menu_item(), INTERNET_SendCallback(), internet_status_callback(), COpenWithMenu::InvokeCommand(), is_assembly_installed(), is_ca_cert(), is_dib_monochrome(), is_pixelformat(), CCommonFolder< CRegistryFolder, RegPidlEntry, CRegistryFolderExtractIcon >::IsFolder(), CCommonFolder< CRegistryFolder, RegPidlEntry, CRegistryFolderExtractIcon >::IsSymLink(), CFolderItemVerbs::Item(), ITERATE_RemoveExistingProducts(), ITSS_chm_enumerator(), KdbpDisassemble(), KdbpGetInstLength(), LaunchINFSectionW(), lcid_from_rfc1766(), LISTBOX_HandleHScroll(), LISTBOX_HandleVScroll(), LISTBOX_SetHorizontalExtent(), LISTBOX_UpdateScroll(), LISTVIEW_GetColumnInfo(), load_dib(), load_persistent_cookie(), lookup_symlink(), map_image_section(), MCIQTZ_mciUpdate(), ME_LinkNotify(), ME_SendRequestResize(), ME_StreamOutRTFHeader(), MimeBody_GetParameters(), CTrayWindow::MinimizeAll(), mono_assembly_search_hook_fn(), msi_dialog_combo_control(), msi_dialog_combobox_handler(), msi_dialog_combobox_update(), msi_dialog_list_box(), msi_dialog_listbox_handler(), msi_dialog_parse_groups(), msi_dialog_pathedit_control(), msi_dialog_scrolltext_control(), msi_dialog_selection_tree(), msi_dialog_text_control(), msi_get_assembly_path(), msi_package_add_info(), msi_publish_sourcelist(), msi_seltree_menu(), MSIComboBox_WndProc(), MsiGetFileSignatureInformationW(), MSIListBox_WndProc(), MSIMaskedEdit_WndProc(), MSIScrollText_WndProc(), MSISelectionTree_WndProc(), MsiSourceListAddSourceExW(), MSIText_WndProc(), mutant_thread(), NdrDllGetClassObject(), CEnumZipContents::Next(), nfs41_close(), nfs41_commit(), nfs41_create(), nfs41_fs_locations(), nfs41_getattr(), nfs41_link(), nfs41_open(), nfs41_remove(), nfs41_server_resolve(), nfs41_setattr(), nfs41_superblock_getattr(), nfs41_write(), NtUserUpdateLayeredWindow(), OLEPictureImpl_Render(), OnClearRecentItems(), CExplorerBand::OnContextMenu(), CBaseBarSite::OnCustomDraw(), CISFBand::OnWinEvent(), OpenAs_RunDLLW(), OSK_Create(), CCommonFolder< CRegistryFolder, RegPidlEntry, CRegistryFolderExtractIcon >::ParseDisplayName(), CMergedFolder::ParseDisplayName(), PiIrpCancelStopDevice(), PiIrpQueryStopDevice(), PiIrpSendRemoveCheckVpb(), PiIrpStartDevice(), PiIrpStopDevice(), pnfs_rpc_layoutcommit(), FxPkgPnp::PnpProcessEvent(), FxPkgPnp::PowerPolicyProcessEvent(), FxPkgPnp::PowerProcessEvent(), print_insn(), PrintSystemInfo(), FxDevicePwrRequirementMachine::ProcessEvent(), FxWakeInterruptMachine::ProcessEvent(), QCAP_createAVIMux(), query_global_option(), query_image_section(), rdssl_hash_info_create(), rdssl_hmac_md5(), rdssl_rc4_info_create(), NtObjDirectory::read_directory(), read_oid_info(), readdir_copy_entry(), TaskBar::Refresh(), register_codepages(), register_vfw_codecs(), ReleaseComponentInfos(), RTFGetToken(), RTFRouteToken(), run_child(), run_client(), run_process(), run_test(), runCmd(), RunSetupCommandW(), s_remote_GetActionInfo(), schan_EnumerateSecurityPackagesA(), search_file(), set_menu_item_info(), CToolbar<>::SetItemData(), setup_client(), setup_server(), setup_tables(), SHBrowseForFolderW(), SHELL_ExecuteW(), ShellAboutW(), shellex_run_context_menu_default(), ShellExecCmdLine(), CEnumZipContents::Skip(), SspiPromptForCredentialsW(), START_TEST(), stretch_blt_icon(), SynthPortImpl_IDirectMusicPort_DownloadInstrument(), SystemInformation_create(), T42_Face_Done(), taskdialog_get_reference_rect(), test__open_osfhandle(), test_api(), test_async(), test_authentication(), test_bcm_splitinfo(), test_brush_pens(), test_cert_struct(), test_combo_listbox_styles(), test_combo_WS_VSCROLL(), test_comctl32_classes(), test_communication(), test_completion(), test_completion_port(), test_componentinfo(), test_connection_cache(), test_connection_info(), test_CopyImage_Bitmap(), test_create(), test_create_invalid(), test_CreateBitmapFromHICON(), test_CreateFileMapping_protection(), test_CreateIcon(), test_crypt_ui_wiz_import(), test_CryptCATAdminAddRemoveCatalog(), test_d3drm_load(), test_D3DXGetImageInfo(), test_D3DXSaveTextureToFileInMemory(), test_dde_aw_transaction(), test_dds_header_handling(), test_debug_heap(), test_decodeAltName(), test_decodeCatMemberInfo(), test_decodeCertPolicies(), test_decodeCertPolicyConstraints(), test_decodeCertPolicyMappings(), test_decodeCMSSignerInfo(), test_decodeCRLDistPoints(), test_decodeCTL(), test_decodePKCSContentInfo(), test_decodePKCSSignerInfo(), test_decoder_info(), test_decodeSpOpusInfo(), test_dib_bits_access(), test_dibsections(), test_DirectInputJoyConfig8(), test_directory_sort(), test_drawimage(), test_EditStreamSetInfo(), test_encode(), test_encodeCatMemberInfo(), test_encodeCertPolicies(), test_encodeCTL(), test_encodeName(), test_encodeSpOpusInfo(), test_encodeUnicodeName(), test_EnumProcessModules(), test_event(), test_ExtractIcon(), test_Face(), test_FDICopy(), test_fdsa(), test_file_access_information(), test_file_all_name_information(), test_file_completion_information(), test_file_id_information(), test_file_info(), test_file_name_information(), test_filter_graph(), test_findOIDInfo(), test_frame_mesh_materials(), test_fromhicon(), test_get16dibits(), test_GetCharsetInfo_other(), test_GetDIBits_scanlines(), test_GetDIBits_selected_DDB(), test_GetDIBits_selected_DIB(), test_GetFileAttributesExW(), test_GetModuleInformation(), test_GetPerformanceInfo(), test_GetRawInputDeviceList(), test_getruntime(), test_GetSetDIBits_rtl(), test_GetUrlCacheConfigInfo(), test_HeapQueryInformation(), test_http_info(), test_ICInfo(), test_icon_info_dbg(), test_image_mapping(), test_info_in_assembly(), test_invalid_stdin_child(), test_IsUrlCacheEntryExpiredA(), test_its_protocol(), test_its_protocol_info(), test_kerberos(), test_layered_window(), Test_layers(), test_listbox_styles(), test_Loader(), test_LoadIconWithScaleDown(), test_LookupAccountSid(), test_mapping(), test_mapprotection(), test_MapViewOfFile(), test_margins_default(), test_media_streams(), test_menu_add_string(), test_menu_search_bycommand(), test_merge_colors(), test_MeshBuilder(), test_MeshBuilder3(), test_MessageGetPropInfo(), test_metadata_APE(), test_metadata_GCE(), test_metadata_GIF_comment(), test_metadata_IMD(), test_metadata_LSD(), test_mutant(), test_navigate_page(), test_NetFwAuthorizedApplication(), test_NonExistentPath(), test_NtQuerySection(), test_null_auth_data(), test_OleUIAddVerbMenu(), test_OpenCase(), test_PdhGetCounterInfoA(), test_PdhGetCounterInfoW(), test_pixelformat_info(), test_process_security(), test_QueryAssemblyInfo(), test_reader_info(), test_redirect(), Test_repeatlayer(), test_rfc1766(), test_riff_write(), test_section_access(), test_secure_connection(), test_set_default_proxy_config(), test_SetCursor(), test_SetDIBits(), test_SetDIBits_RLE4(), test_SetDIBits_RLE8(), test_SetDIBitsToDevice(), test_SetDIBitsToDevice_RLE8(), test_SetupDiGetClassDevsExW(), test_SetupGetInfInformation(), test_ShowCursor(), test_sip(), test_SspiPromptForCredentials(), test_system_menu(), test_token_security_descriptor(), test_VerifyVersionInfo(), test_vfw(), test_VirtualAlloc(), test_VirtualAlloc_protection(), test_VirtualAllocEx(), test_VirtualProtect(), test_WICCreateBitmapFromSectionEx(), test_window_from_point(), test_WinHttpGetProxyForUrl(), test_winproc_handles(), test_WithWSAStartup(), test_write_watch(), test_WS_VSCROLL(), test_WSADuplicateSocket(), test_WSAEnumProtocolsA(), test_WSAEnumProtocolsW(), test_WSASocket(), test_WTSEnumerateProcessesW(), testAuth(), testCreateSelfSignCert(), testCursorInfo(), testK32GetModuleInformation(), testVerifyCertSig(), testVerifyCertSigEx(), TileWindows(), TOOLBAR_AddBitmap(), TRIO_ARGS3(), TRIO_VARGS3(), TrustIsCertificateSelfSigned(), UpdateDisplay(), CBalloonQueue::UpdateInfo(), VfdCheckDriverFile(), VfdOpenImage(), VMR7MonitorConfig_GetAvailableMonitors(), VMR9_DoRenderSample(), VMR9_maybe_init(), VMR9MonitorConfig_GetAvailableMonitors(), wave_out_play(), wave_out_set_format(), wave_out_volume(), WinHttpOpen(), WININET_AddRef(), winver_equal_or_newer(), write_to_mds(), WshShell3_Run(), wWinMain(), xmlParserAddNodeInfo(), xsltApplySequenceConstructor(), FxDevice::~FxDevice(), FxPkgGeneral::~FxPkgGeneral(), and FxPkgIo::~FxPkgIo().

◆ results

◆ test_no

int test_no = 0
static

Definition at line 32 of file SetCursorPos.c.

Referenced by MouseHookProc(), MouseLLHookProc(), Test_SetCursorPos(), and WndProc().