|
-
Sep 11th, 2000, 10:45 PM
#1
Thread Starter
Junior Member
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
-
Sep 15th, 2000, 06:17 AM
#2
Member
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
Grant French
-----------------------------------------------
E-Mail: [email protected]
ICQ: 33122184
-
Sep 15th, 2000, 03:25 PM
#3
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.
-
Sep 16th, 2000, 02:21 PM
#4
Thread Starter
Junior Member
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
-
Sep 16th, 2000, 03:05 PM
#5
Monday Morning Lunatic
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|