ReactOS  0.4.12-dev-945-g5a2911d
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

HHOOK hMouseHookLL
 
HHOOK hMouseHook
 
struct _test_info info []
 
struct _test_info results [8]
 
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 53 of file SetCursorPos.c.

54 {
55  MSG msg;
56  WNDCLASSA wclass;
58  HWND hWndTest;
59 
60  wclass.lpszClassName = "MouseInputTestClass";
61  wclass.style = CS_HREDRAW | CS_VREDRAW;
62  wclass.lpfnWndProc = WndProc;
63  wclass.hInstance = hInstance;
64  wclass.hIcon = LoadIconA( 0, IDI_APPLICATION );
65  wclass.hCursor = LoadCursorA( NULL, IDC_ARROW );
66  wclass.hbrBackground = (HBRUSH)( COLOR_WINDOW + 1 );
67  wclass.lpszMenuName = 0;
68  wclass.cbClsExtra = 0;
69  wclass.cbWndExtra = 0;
70  RegisterClassA( &wclass );
71  /* create the test window that will receive the keystrokes */
72  hWndTest = CreateWindowA( wclass.lpszClassName, "MouseInputTestTest",
73  WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, 0, 100, 100,
74  NULL, NULL, hInstance, NULL);
75  assert( hWndTest );
81 
82  /* flush pending messages */
83  while (PeekMessage( &msg, 0, 0, 0, PM_REMOVE )) DispatchMessageA( &msg );
84 
85  return hWndTest;
86 }
LRESULT WINAPI DispatchMessageA(_In_ const MSG *)
#define PeekMessage
Definition: winuser.h:5696
#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:3118
#define assert(x)
Definition: debug.h:53
#define CS_HREDRAW
Definition: winuser.h:648
LPCSTR lpszMenuName
Definition: winuser.h:3124
#define HWND_TOPMOST
Definition: winuser.h:1194
HWND WINAPI SetFocus(_In_opt_ HWND)
#define IDI_APPLICATION
Definition: winuser.h:699
HBRUSH hbrBackground
Definition: winuser.h:3123
BOOL WINAPI ShowWindow(_In_ HWND, _In_ int)
#define COLOR_WINDOW
Definition: winuser.h:908
HICON WINAPI LoadIconA(_In_opt_ HINSTANCE, _In_ LPCSTR)
Definition: cursoricon.c:2029
int cbWndExtra
Definition: winuser.h:3119
HINSTANCE hInstance
Definition: charmap.c:20
#define CreateWindowA(a, b, c, d, e, f, g, h, i, j, k)
Definition: winuser.h:4184
HCURSOR hCursor
Definition: winuser.h:3122
#define CW_USEDEFAULT
Definition: winuser.h:225
smooth NULL
Definition: ftsmooth.c:416
static HWND hWndTest
Definition: input.c:68
#define CS_VREDRAW
Definition: winuser.h:653
HMODULE WINAPI DECLSPEC_HOTPATCH GetModuleHandleA(LPCSTR lpModuleName)
Definition: loader.c:819
LPCSTR lpszClassName
Definition: winuser.h:3125
static LRESULT CALLBACK WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
Definition: SetCursorPos.c:45
HCURSOR WINAPI LoadCursorA(_In_opt_ HINSTANCE, _In_ LPCSTR)
Definition: cursoricon.c:2059
UINT style
Definition: winuser.h:3116
#define SWP_NOSIZE
Definition: winuser.h:1230
HINSTANCE hInstance
Definition: winuser.h:3120
WNDPROC lpfnWndProc
Definition: winuser.h:3117
#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:1229
BOOL WINAPI SetWindowPos(_In_ HWND, _In_opt_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ UINT)
#define PM_REMOVE
Definition: winuser.h:1182
ATOM WINAPI RegisterClassA(_In_ CONST WNDCLASSA *)
HICON hIcon
Definition: winuser.h:3121

Referenced by Test_SetCursorPos().

◆ MouseHookProc()

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

Definition at line 39 of file SetCursorPos.c.

40 {
41  results[test_no].hook_called++;
42  return CallNextHookEx(hMouseHook, nCode, wParam, lParam);
43 }
int test_no
Definition: SetCursorPos.c:30
WPARAM wParam
Definition: combotst.c:138
struct _test_info results[8]
Definition: SetCursorPos.c:29
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 33 of file SetCursorPos.c.

34 {
35  results[test_no].ll_hook_called++;
36  return CallNextHookEx(hMouseHookLL, nCode, wParam, lParam);
37 }
int test_no
Definition: SetCursorPos.c:30
HHOOK hMouseHookLL
Definition: SetCursorPos.c:10
WPARAM wParam
Definition: combotst.c:138
struct _test_info results[8]
Definition: SetCursorPos.c:29
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 197 of file SetCursorPos.c.

198 {
201 }
void Test_SetCursorPos()
Definition: SetCursorPos.c:88
void Test_DesktopAccess()
Definition: SetCursorPos.c:157

◆ Test_DesktopAccess()

void Test_DesktopAccess ( )

Definition at line 157 of file SetCursorPos.c.

158 {
159  HDESK hDesk, hDeskInitial;
160  POINT curPoint, initialPoint;
161  BOOL ret;
162 
163  hDeskInitial = GetThreadDesktop(GetCurrentThreadId());
164  ok(hDeskInitial != NULL, "Failed to retrieve the initial desktop\n");
165 
166  ret = GetCursorPos(&initialPoint);
167  ok(ret == TRUE, "GetCursorPos should succed\n");
168 
169  hDesk = CreateDesktopW(L"testDesktop", NULL, NULL, 0, 0x01ff, NULL);
170  ok(hDesk != 0, "Failed to create a new desktop\n");
171  SetThreadDesktop(hDesk);
172  ok(GetThreadDesktop(GetCurrentThreadId()) == hDesk, "SetThreadDesktop had no effect\n");
173 
174  SetLastError(0xdeadbeef);
175 
176  ret = GetCursorPos(&curPoint);
177  ok(ret == FALSE, "GetCursorPos should fail\n");
178 
179  ok(GetLastError() == ERROR_ACCESS_DENIED, "Expected ERROR_ACCESS_DENIED got 0x%lx\n", GetLastError());
180  SetLastError(0xdeadbeef);
181 
182  ret = SetCursorPos(2,2);
183  ok(ret == FALSE, "SetCursorPos should fail\n");
184 
185  ok(GetLastError() == 0xdeadbeef, "Wrong last error, got 0x%lx\n", GetLastError());
186 
187  ret = GetCursorPos(&curPoint);
188  ok(ret == FALSE, "GetCursorPos should fail\n");
189 
190  SetThreadDesktop(hDeskInitial);
191 
192  ret = GetCursorPos(&curPoint);
193  ok(ret == TRUE, "GetCursorPos should succed\n");
194  ok(curPoint.x == initialPoint.x && curPoint.y == initialPoint.y, "Mouse position changed\n");
195 }
#define TRUE
Definition: types.h:120
long y
Definition: polytest.cpp:48
long x
Definition: polytest.cpp:48
HDESK WINAPI GetThreadDesktop(_In_ DWORD)
DWORD WINAPI GetLastError(VOID)
Definition: except.c:1059
BOOL WINAPI GetCursorPos(_Out_ LPPOINT)
Definition: cursoricon.c:2635
BOOL WINAPI SetThreadDesktop(_In_ HDESK)
#define ERROR_ACCESS_DENIED
Definition: compat.h:87
unsigned int BOOL
Definition: ntddk_ex.h:94
smooth NULL
Definition: ftsmooth.c:416
DWORD WINAPI GetCurrentThreadId(VOID)
Definition: thread.c:421
#define ok(value,...)
Definition: CComObject.cpp:34
BOOL WINAPI SetCursorPos(_In_ int, _In_ int)
Definition: cursoricon.c:2627
#define SetLastError(x)
Definition: compat.h:409
int ret
static const WCHAR L[]
Definition: oid.c:1250
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 88 of file SetCursorPos.c.

89 {
90  HWND hwnd;
91  MSG msg;
92  int i;
93 
96  ok(hMouseHook!=NULL,"failed to set hook\n");
97  ok(hMouseHookLL!=NULL,"failed to set hook\n");
98 
99  test_no = 0;
100  SetCursorPos(1,1);
101  while (PeekMessage( &msg, 0, 0, 0, PM_REMOVE )) DispatchMessageA( &msg );
102 
103  test_no = 1;
104  mouse_event(MOUSEEVENTF_MOVE, 2,2, 0,0);
105  while (PeekMessage( &msg, 0, 0, 0, PM_REMOVE )) DispatchMessageA( &msg );
106 
108  SetCapture(hwnd);
109 
110  test_no = 2;
111  SetCursorPos(50,50);
112  while (PeekMessage( &msg, 0, 0, 0, PM_REMOVE )) DispatchMessageA( &msg );
113 
114  test_no = 3;
115  mouse_event(MOUSEEVENTF_MOVE, 100,100, 0,0);
116  while (PeekMessage( &msg, 0, 0, 0, PM_REMOVE )) DispatchMessageA( &msg );
117 
118  test_no = 4;
119  SetCursorPos(50,50);
120  SetCursorPos(60,60);
121  while (PeekMessage( &msg, 0, 0, 0, PM_REMOVE )) DispatchMessageA( &msg );
122 
123  test_no = 5;
124  SetCursorPos(50,50);
125  while (PeekMessage( &msg, 0, 0, 0, PM_REMOVE )) DispatchMessageA( &msg );
126  SetCursorPos(60,60);
127  while (PeekMessage( &msg, 0, 0, 0, PM_REMOVE )) DispatchMessageA( &msg );
128 
129  test_no = 6;
130  mouse_event(MOUSEEVENTF_MOVE, 50,50, 0,0);
131  mouse_event(MOUSEEVENTF_MOVE, 60,60, 0,0);
132  while (PeekMessage( &msg, 0, 0, 0, PM_REMOVE )) DispatchMessageA( &msg );
133 
134  test_no = 7;
135  mouse_event(MOUSEEVENTF_MOVE, 50,50, 0,0);
136  while (PeekMessage( &msg, 0, 0, 0, PM_REMOVE )) DispatchMessageA( &msg );
137  mouse_event(MOUSEEVENTF_MOVE, 60,60, 0,0);
138  while (PeekMessage( &msg, 0, 0, 0, PM_REMOVE )) DispatchMessageA( &msg );
139 
140  for(i = 0; i< 8; i++)
141  {
142 #define TEST(s,x,y) ok(y == x, "%d: %s called %d times instead of %d\n",i,s, y,x);
143  TEST("WH_MOUSE_LL", info[i].ll_hook_called, results[i].ll_hook_called);
144  /* WH_MOUSE results vary greatly among windows versions */
145  //TEST("WH_MOUSE", info[i].hook_called, results[i].hook_called);
146  TEST("WM_MOUSEMOVE", info[i].mouse_move_called, results[i].mouse_move_called);
147  }
148 
149  SetCapture(NULL);
151 
154 
155 }
int test_no
Definition: SetCursorPos.c:30
#define WH_MOUSE
Definition: winuser.h:37
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
LRESULT WINAPI DispatchMessageA(_In_ const MSG *)
#define PeekMessage
Definition: winuser.h:5696
HHOOK hMouseHookLL
Definition: SetCursorPos.c:10
TW_UINT32 TW_UINT16 TW_UINT16 MSG
Definition: twain.h:1827
int mouse_move_called
Definition: SetCursorPos.c:16
BOOL WINAPI DestroyWindow(_In_ HWND)
LRESULT CALLBACK MouseLLHookProc(int nCode, WPARAM wParam, LPARAM lParam)
Definition: SetCursorPos.c:33
#define WH_MOUSE_LL
Definition: winuser.h:44
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
int ll_hook_called
Definition: SetCursorPos.c:14
void WINAPI mouse_event(_In_ DWORD, _In_ DWORD, _In_ DWORD, _In_ DWORD, _In_ ULONG_PTR)
smooth NULL
Definition: ftsmooth.c:416
DWORD WINAPI GetCurrentThreadId(VOID)
Definition: thread.c:421
LRESULT CALLBACK MouseHookProc(int nCode, WPARAM wParam, LPARAM lParam)
Definition: SetCursorPos.c:39
#define ok(value,...)
Definition: CComObject.cpp:34
BOOL WINAPI SetCursorPos(_In_ int, _In_ int)
Definition: cursoricon.c:2627
#define SetWindowsHookEx
Definition: winuser.h:5722
struct _test_info results[8]
Definition: SetCursorPos.c:29
HHOOK hMouseHook
Definition: SetCursorPos.c:10
HMODULE WINAPI DECLSPEC_HOTPATCH GetModuleHandleA(LPCSTR lpModuleName)
Definition: loader.c:819
#define TEST(s, x, y)
BOOL WINAPI UnhookWindowsHookEx(_In_ HHOOK)
HWND WINAPI SetCapture(_In_ HWND hWnd)
#define MOUSEEVENTF_MOVE
Definition: winuser.h:1169
#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:53
HMODULE WINAPI GetModuleHandleW(LPCWSTR lpModuleName)
Definition: loader.c:845
#define PM_REMOVE
Definition: winuser.h:1182

Referenced by START_TEST().

◆ WndProc()

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

Definition at line 45 of file SetCursorPos.c.

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

Referenced by CreateTestWindow().

Variable Documentation

◆ hMouseHook

HHOOK hMouseHook

Definition at line 10 of file SetCursorPos.c.

Referenced by MouseHookProc(), and Test_SetCursorPos().

◆ hMouseHookLL

HHOOK hMouseHookLL

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(), allocvsid(), alpha_blend_image(), app_search_file(), 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_dib_size(), check_icon_size(), check_menu_item_info(), cid_face_done(), ClassDeviceControl(), ClassFactoryImpl_Constructor(), ClasspInitializePolling(), ClasspInterpretGesnData(), ClasspMediaChangeDetectionCompletion(), ClassSetFailurePredictionPoll(), clnt_dg_control(), clnt_vc_control(), ClrCreateManagedInstance(), CoInternetCombineIUri(), CoInternetCombineUrlEx(), CoInternetParseIUri(), compare_crl_issued_by(), compile_shader(), ConsolePager(), CExplorerBand::ContextMenuHack(), Control_LoadApplet(), CorBindToRuntimeEx(), CorBindToRuntimeHost(), correct_behavior(), 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(), 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(), debugstr_status_info(), detail_dlg_proc(), DIALOG_CreateControls32(), do_authorization(), do_msidbCustomActionTypeDll(), do_msidbCustomActionTypeScript(), do_parent(), do_register_dll(), DoInfInstallW(), 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(), 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_window(), FindEffectiveProc(), CAvailableApps::FindInfo(), findvsid(), free_oid_info(), FreeBT_DispatchDevCtrl(), FreeBT_SetWmiDataBlock(), FreeBT_SetWmiDataItem(), FsVolumeInfo(), get_app_version(), get_ea_value(), get_encoder_clsid(), get_file_version(), get_freespace(), get_handle_object(), get_icon_size(), get_ioinfo_alloc(), get_logical_processor_count(), 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(), 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(), 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(), mcr_GetActionInfo(), 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_DlgInitDialog(), CCommonFolder< CRegistryFolder, RegPidlEntry, CRegistryFolderExtractIcon >::ParseDisplayName(), CMergedFolder::ParseDisplayName(), pnfs_rpc_layoutcommit(), print_insn(), PrintSystemInfo(), 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(), runCmd(), RunSetupCommandW(), schan_EnumerateSecurityPackagesA(), 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_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_dde_aw_transaction(), 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_getruntime(), test_GetSetDIBits_rtl(), 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_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_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(), and xsltApplySequenceConstructor().

◆ results

◆ test_no

int test_no = 0

Definition at line 30 of file SetCursorPos.c.

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