Results 1 to 5 of 5

Thread: Disabled API Calls

  1. #1

    Thread Starter
    Junior Member
    Join Date
    May 2000
    Posts
    24

    Angry

    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

  2. #2
    Member
    Join Date
    Aug 2000
    Posts
    60

    Angry

    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

  3. #3
    Guest
    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.

  4. #4

    Thread Starter
    Junior Member
    Join Date
    May 2000
    Posts
    24
    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

  5. #5
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Yes.
    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
  •  



Click Here to Expand Forum to Full Width