-
I was wondering if there is any way that a program could disable any API calls (namely SetCursorPos). I thought my program had bugs, but it turns out that the SetCursorPos only fails when I have certain programs running. Can anyone shed some light on the subject? Thanks a lot.
-CD
-
There is only one way in which you can stop the use of api calls and that is to remove the API Libary, i.e the dll file like Kernel32.dll
However before you do that, if you remove this dll your system will no longer work. So the answer is Yes but No
-
I highly recommend you do not remove the library as they are essential for Windows to run.
If you want to disable the API in an external App, you need to create an external DLL to subclass it. If you want to disable it in your app, simply subclass the WM_MOUSEMOVE and WM_NCMOUSEMOVE messages.
-
I'm not trying to do it...I think another program is doing it. If I made a copy of user32.dll and called it something different, say xuser32.dll, could I call SetCursorPos from it?
Code:
Declare Function SetCursorPos Lib "xuser32" (ByVal x As Long, ByVal y As Long) As Long
Thanks
-CD
-