Giter Site home page Giter Site logo

Comments (4)

djberg96 avatar djberg96 commented on August 10, 2024

It could be supported, but I -REALLY- encourage you to use FFI instead. That said, if you submit a pull request (and the tests pass), I'll merge it.

from win32-api.

AntonSynytsia avatar AntonSynytsia commented on August 10, 2024

I use both FFI and Win32::API! I use Win32::API because Hook Procedure callbacks work with Win32::API, but they don't work with FFI. See this issue: ffi/ffi#283 Maybe you could suggest something to make it work with FFI

Thanks

from win32-api.

djberg96 avatar djberg96 commented on August 10, 2024

Did you get it working with FFI?

from win32-api.

AntonSynytsia avatar AntonSynytsia commented on August 10, 2024

Hook procedure is a special circumstance function that requires its callbacks be defined in a separate DLL.
"You must place a global hook procedure in a DLL separate from the application installing the hook procedure".
This works with win32-api because its callbacks are already predefined in a separate .dll/.so, while the FFI creates its callbacks in the application itself.

I haven't got it working with FFI, but it isn't a problem anymore. I decided to stay with Win32::API as it is more user friendly when it comes to using MSFT Windows functions.

I also increased the callback limit to 20. This way I could do more with it.

from win32-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.