Click to See Complete Forum and Search --> : Disabled API Calls
CreepingDeath
Sep 11th, 2000, 10:45 PM
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
gfrench
Sep 15th, 2000, 06:17 AM
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.
CreepingDeath
Sep 16th, 2000, 02:21 PM
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?
Declare Function SetCursorPos Lib "xuser32" (ByVal x As Long, ByVal y As Long) As Long
Thanks
-CD
parksie
Sep 16th, 2000, 03:05 PM
Yes.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.