| |

VerySource

 Forgot password?
 Register
Search
View: 2782|Reply: 13

problem with hook ExtTextOutA / W

[Copy link]

1

Threads

5

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-1-11 13:40:01
| Show all posts |Read mode
Why are some parts of the same drawgrid hookable but not others
For example: I can commit against Zasar 12322adsdsadas. I can commit it immediately. 12345678
"12345678" cannot be extracted.
Reply

Use magic Report

0

Threads

22

Posts

14.00

Credits

Newbie

Rank: 1

Credits
14.00

 China

Post time: 2020-1-15 23:36:01
| Show all posts
What is it used for?

Global mouse hooks?
Reply

Use magic Report

0

Threads

7

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 China

Post time: 2020-1-16 07:36:01
| Show all posts
. . . . The landlord was too esoteric. For example: I can commit against Zasar 12322adsdsadas. I can commit it immediately. 12345678
What is this?
Reply

Use magic Report

1

Threads

5

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

 Author| Post time: 2020-1-16 10:54:02
| Show all posts
Is the global hook in the dll.
Reply

Use magic Report

0

Threads

22

Posts

14.00

Credits

Newbie

Rank: 1

Credits
14.00

 China

Post time: 2020-1-16 15:09:01
| Show all posts
I don't understand how it is possible to get 12322 without it. . .
Reply

Use magic Report

0

Threads

22

Posts

14.00

Credits

Newbie

Rank: 1

Credits
14.00

 China

Post time: 2020-1-17 07:18:01
| Show all posts
I tried it with my program, no problem.

Never encountered it.
Reply

Use magic Report

0

Threads

18

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

Post time: 2020-1-24 17:36:02
| Show all posts
Help you
Reply

Use magic Report

0

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-1-26 10:00:02
| Show all posts
This is the function declaration, BOOL ExtTextOut (
  HDC hdc, // handle to device context
  int X, // x-coordinate of reference point
  int Y, // y-coordinate of reference point
  UINT fuOptions, // text-output options
  CONST RECT * lprc, // optional clipping and / or opaquing rectangle
  LPCTSTR lpString, // points to string
  UINT cbCount, // number of characters in string
  CONST INT * lpDx // pointer to array of intercharacter spacing
                    // values
);
Note: Is lpString a wide character, is cbCount correct, and is lprc large enough?
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-1-31 13:00:01
| Show all posts
It is estimated that the problem is upstairs. In fact, it is easy to see why the buffer is dropped by looking at the buffer.
Reply

Use magic Report

1

Threads

5

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

 Author| Post time: 2020-3-11 08:00:01
| Show all posts
tofelix3325
Note: Is lpString a wide character, is cbCount correct, and is lprc large enough?

I hooked exttextoutA and exttextoutW respectively
lpString contains two types, single-byte and double-byte
cbcount can't get value in hook function
No problem with the scope of lprc
But if the function being hooked is blocked, the characters that cannot be hooked are not displayed.
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