flat assembler
Message board for the users of flat assembler.

Index > Main > Structures..

Author
Thread Post new topic Reply to topic
FeDeXR



Joined: 10 Mar 2008
Posts: 3
Location: Argentina
FeDeXR 10 Mar 2008, 21:56
How can I do this?

data db dup(?)
push MB_ICONERROR
push DWORD PTR DS: data+WNDCLASS.lpszClassName ; (DON'T WORK)... In C is ((WNDCLASS *)data)->lpszClassName
push text
push 0
call [MessageBox]

push DWORD PTR DS: data+36 ; is not easy...

From Argentina
Thanks
Post 10 Mar 2008, 21:56
View user's profile Send private message Visit poster's website MSN Messenger Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20414
Location: In your JS exploiting you and your system
revolution 11 Mar 2008, 01:29
FeDeXR wrote:
How can I do this?

data db dup(?)
push MB_ICONERROR
push DWORD PTR DS: data+WNDCLASS.lpszClassName ; (DON'T WORK)... In C is ((WNDCLASS *)data)->lpszClassName
push text
push 0
call [MessageBox]

push DWORD PTR DS: data+36 ; is not easy...

From Argentina
Thanks

Code:
include 'win32ax.inc'
wcdata WNDCLASS
stdcall MessageBox,0,text,[wcdata.lpszClassName],MB_ICONERROR    

or
Code:
include 'win32ax.inc'
wcdata WNDCLASS
push MB_ICONERROR
push [wcdata.lpszClassName]
push text
push 0
call [MessageBox]    
Post 11 Mar 2008, 01:29
View user's profile Send private message Visit poster's website Reply with quote
FeDeXR



Joined: 10 Mar 2008
Posts: 3
Location: Argentina
FeDeXR 11 Mar 2008, 15:21
I know it.. But it is a permanent memory... I am using a temporary memory for all uses..

In C, I used:
UCHAR data[512]; // Temp Memory 512 Bytes
//...
MessageBox(NULL,"Hello",((WNDCLASS *)data)->lpszClassName,MB_ICONERROR);
// ... The same
MessageBox(NULL,"Hello",((DWORD *)(data+36))[0],MB_ICONERROR);
// ...

How?
Post 11 Mar 2008, 15:21
View user's profile Send private message Visit poster's website MSN Messenger Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20414
Location: In your JS exploiting you and your system
revolution 11 Mar 2008, 15:25
Code:
include 'win32ax.inc'
temp_data: rb 512
stdcall MessageBox,0,text,[temp_data+WNDCLASS.lpszClassName],MB_ICONERROR    
Post 11 Mar 2008, 15:25
View user's profile Send private message Visit poster's website Reply with quote
FeDeXR



Joined: 10 Mar 2008
Posts: 3
Location: Argentina
FeDeXR 11 Mar 2008, 15:35
ohhhh sorryyy...
push buffer+WNDCLASS.hIcon
Works.. I don't know why it didn't work

thank you...
Post 11 Mar 2008, 15:35
View user's profile Send private message Visit poster's website MSN Messenger Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.