setcursorPos mouse_event as administrator.
-
hi, i need to run my app with administrator priviledges, however i have noticed that when run as admin ::SetCursorPos and mouse_event dont work. when run as a normal user they both work as expected. keybd_event works either in admin or normal user mode. anyone know why this is? thanks
-
hi, i need to run my app with administrator priviledges, however i have noticed that when run as admin ::SetCursorPos and mouse_event dont work. when run as a normal user they both work as expected. keybd_event works either in admin or normal user mode. anyone know why this is? thanks
There must be something else going on in your code. I have just tested this on a small program and it works exactly the same as normal or admin user. If this was a problem then much of Windows would not be working.
One of these days I'm going to think of a really clever signature.
-
There must be something else going on in your code. I have just tested this on a small program and it works exactly the same as normal or admin user. If this was a problem then much of Windows would not be working.
One of these days I'm going to think of a really clever signature.
ok thanks mate. you were of course correct. if anyone cares the problem was i was hooking cbtproc to record mouse events and llkeyboard for keyboard events.this works in user mode but in admin mode HCBTPROC wasnt getting recorded. i swithced it to llmousehook and now its all good. thanks for your help