Re: System-wide hooking, VB+ASM

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



If you find being told to use some initiative rude, then so be it. As to
your concrete question, you have been given URLs and API names. The answer
to your question is trivially obvious from the documentation on the
SetWindowsHookEx API. I am prepared to give pointers to solve a problem, but
you have to RTFM for yourself.

And telling somebody to read the documentation is not rude, rather it is
posting questions without reading the documentation that is rude -
especially after you've been told EXACTLY what to read.

"Jonathan Wood" <jwood@xxxxxxxxxxxxxxxx> wrote in message
news:OWCIwLVXFHA.2520@xxxxxxxxxxxxxxxxxxxxxxx
> Mark,
>
>> I figured if I gave you a URL, you could look up the complete feature set
>> yourself.
>
> Yeah, I guess I didn't realize asking you a simple question would be a
> problem for you. I guess some people just feel threatened when someone
> questions something they said. Hey, we should all be open to learning
> something new.
>
>> If you had read the documentation you'd have seen that SetWindowsHookEx
>> requires the DLL handle and entry address. If you had read the
> documentation
>> you'd have seen that these are obtained using the normal Windows APIs
>> LoadLibrary and GetProcAddress respectively, both of which are readily
>> callable from VB.
>
> Well, your rude tone aside, why can't you simply have the hook installed
> from the same DLL? The callback could be in a BAS module of the DLL and
> you
> could simply use AddressOf to provide the lpfn argument. No LoadLibrary or
> GetProcAddress calls required.
>
> --
> Jonathan Wood
> SoftCircuits
> http://www.softcircuits.com
> Available for consulting: http://www.softcircuits.com/jwood/resume.htm
>
>
>


.



Relevant Pages

  • Re: Using "new function() {...}" as a Singleton
    ... their documentation). ... to a solid foundation for the "major" libraries and frameworks. ... Even worse when the main goal of the API ... We are talking about selector *queries* (e.g. Selectors API). ...
    (comp.lang.javascript)
  • Re: Using "new function() {...}" as a Singleton
    ... their documentation). ... to a solid foundation for the "major" libraries and frameworks. ... The idea of copying an API without knowing what the expected outcome of its core method is ludicrous. ... And if you want to know why the section of CSS 2.1 that defines "identifier" was quoted, the pertinent part of the spec that makes reference to the term `identifier` is in CSS 2.1 is described in attribute values. ...
    (comp.lang.javascript)
  • Re: Tired of 100s of stupid Getter/Setter methods
    ... seeing as you're now scratching for even more marginal cases to ... >>reading the documentation that the library developer wrote. ... > ability to become familiar with an API. ... >>been ignoring real bugs in favor of some syntactic sugar. ...
    (comp.lang.java.programmer)
  • Re: Bluetooth application development
    ... It's a VERY complex API, maybe the most-complex that I've seen for Windows. ... Why MSDN is not providing enough documentation to develop application from ... I don't see any way to truely automate pairing; ... Here also i have to start the pairing process then Headset profile ...
    (microsoft.public.windowsce.app.development)
  • Re: Are things getting difficult?
    ... any files have been added since we last saw that card, ... I'm faced with a lot of documentation that waffles on endlessly about ... resource is, or what the syntax is for describing one. ... To me that's an admission that the API is badly designed. ...
    (uk.comp.os.linux)