flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
bitRAKE 22 Jun 2021, 04:29
Maybe it's an explorer style and the hook proc is getting CDN_HELP notifications?
These things have changed so much through windows versions. If I created an example it's going to be the new notification mechanism. |
|||
![]() |
|
fasm14 22 Jun 2021, 08:44
The hook flag wasn't set before, but when I added it and a pointer to a procedure, it started receiving WM_NOTIFY messages; according to this, lparam has a pointer to an OFNOTIFY structure, with the notification message being the third dword in it, but when I do this
Code: mov ebx, [lparam] mov eax, [ebx] |
|||
![]() |
|
bitRAKE 22 Jun 2021, 18:40
lParam is a pointer - NOT has a pointer.
(Do you use a debugger? Just throwing an INT3 in there and running would allow you to see what is happening.) The wording is rather brief in the English version - wonder if the Russian is any better? https://docs.microsoft.com/ru-ru/windows/win32/dlgbox/cdn-help Funny, enough google translation of the Russian is more exact than the English, lol! |
|||
![]() |
|
sinsi 22 Jun 2021, 20:53
HELPMSGSTRING is defined in the C++ headers as
Code: #define HELPMSGSTRING TEXT("commdlg_help") Shouldn't your code use this? Code: themessage du "commdlg_help",0 |
|||
![]() |
|
fasm14 23 Jun 2021, 13:31
bitRAKE wrote: lParam is a pointer - NOT has a pointer. Thanks, I managed to get the -605 (CDN_HELP) code from lparam in the hook procedure with Code: mov ebx, [lparam] mov ebx, [ebx+8] Replacing "HELPMSGSTRING" with sinsi wrote:
|
|||
![]() |
|
fasm14 24 Jun 2021, 08:43
I now realized that this
Code: mov ebx, [lparam] mov eax, [ebx] Code: mov ebx, [lparam] mov ebx, [ebx+8] Code: cmp [msg], WM_NOTIFY je continue1 ret continue1: |
|||
![]() |
|
bitRAKE 25 Jun 2021, 01:07
My comment was in error. Too much time in 64-bit.
![]() |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2023, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.