Results 1 to 3 of 3

Thread: Unless you are Bill Gates, you probably can't help...

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2000
    Posts
    352

    Exclamation Unless you are Bill Gates, you probably can't help...

    New Info:
    Wh_shell only listens; it is incapable of responding. I need to use wh_cbt along with the HCBT_CreateWnd in order to monitor the creation of new windows. Once I have this in place, how do I alter it so the creation of the window is canceled??? Thank you very much. Joe

    Original Post:
    I am designing a program that monitors the system using a systemwide windows hook. I am currently using wh_shell and then within the c++ dll callback(shellproc) monitoring with the hshell_windowcreated. I want to be able to terminate the creation of this window from within the dll shellproc callback. How can I do this??? I would really prefer not to have to use sendmessage wm_close because this fix does not always work for what I am doing. I am quite sure I read msdn documentation that stated it was possible to send some parameter back with the next call that terminated the creation. I don't know if this dealt with the wh_shell hook or the wh_cbt(which I would be open to using if there is a comprable method to track window creation with a means of terminating the creation). I can't be sure because msdn changed their documentation. How frustrating. Thank you for any help you can give.
    Joe
    Last edited by Joey_k29; Nov 6th, 2001 at 10:47 AM.

  2. #2
    jim mcnamara
    Guest
    None of here is Bill Gates, so we won't answer. Plus, Gates doesn't write code anymore.

    Constructive comment:

    Your thread titles should reflect content. Personally, I have seen about 10 of your threads. All of them have non-sequitur titles.
    Suggested title: Help with system wide hook


    Second comment:

    Try posting at www.codeguru.com - but if you use thread titles like this one has you'll get slammed bigtime.

    Third comment:

    Goto www.sysinternals.com -- system wide hooks have been done before. They have the tools and source code for free. Plus lots of drivers & tools to facilitate all aspects of system monitoring.
    Why re-invent the wheel, unless this is a school coding exercise?

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2000
    Posts
    352

    Sorry for the subject...

    but the reality is that it is often more important to catch attention when making a post than to summarize the question. This has been my experience, especially here. There is one other advantage to this method of posting. Many people who would not have looked look because of it, and as a result, it is more likely to peak their interest and give them ideas. But anyway, as to your other suggestions, I am confident that the question will be answered here. Megatron has been extremely helpful in teaching how to do systemwide hooks as have been many other people. And I am reinventing the wheel for two reasons really. The first of which, I am trying to create a template that will allow me to modify the dll as I best see fit. Often times using other people's templates come with unneccessary overhead. Secondly, I am trying to learn and understand these concepts. The school I got stuck attending this year can't do it, so I feel that I need to learn this on my own. Thank you for the suggestions.
    Joe

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