| |

VerySource

 Forgot password?
 Register
Search
View: 737|Reply: 3

A weird question. . .

[Copy link]

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-1-23 20:00:01
| Show all posts |Read mode
Recently, I made a global hook to detect cbt messages, and added a messagebox to the hook's dll, and the program can normally hook the message. If not, the message cannot be hooked. No expected results. what happened? !! What does this have to do with messagebox?
Reply

Use magic Report

0

Threads

30

Posts

22.00

Credits

Newbie

Rank: 1

Credits
22.00

 China

Post time: 2020-2-8 08:00:01
| Show all posts
SetWindowsHook?
Reply

Use magic Report

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

 Author| Post time: 2020-3-18 20:30:01
| Show all posts
Is it my rpwt, no one has an idea ...
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-3-21 23:00:02
| Show all posts
Because there is no specific procedure, let me briefly mention it!

    The windows monitored by the hook can be created by other processes. When a message arrives, it must be processed before the target window handler.
    Whenever a specific message is sent, the hook program captures the message before it reaches the destination window, that is, the hook function gets control first. At this time, the hook function can process (change) the message, or continue to deliver the message without processing, and can also force the message to end.

WH_CBT Hook
Before the following events, the system will call the WH_CBT Hook subroutine, these events include:
1. Activate, create, destroy, minimize, maximize, move, resize and other window events;
2. Complete system instructions;
3. Move the mouse and keyboard events from the system message queue;
4. Set the input focus event;
5. Synchronize system message queue events.
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list