flat assembler
Message board for the users of flat assembler.

Index > Windows > CreateWindow ?!

Author
Thread Post new topic Reply to topic
asmrox



Joined: 19 Jan 2008
Posts: 160
asmrox 15 Feb 2008, 21:29
msdn says 'exported by user32.dll'. Thers no CreateWindowA/CreateWindowW in my user32.dll, WTF!
Post 15 Feb 2008, 21:29
View user's profile Send private message Reply with quote
OzzY



Joined: 19 Sep 2003
Posts: 1029
Location: Everywhere
OzzY 15 Feb 2008, 21:32
What do you mean by there's no CreateWindowA/CreateWindowW in your user32.dll?
I'm pretty sure there is!
Post 15 Feb 2008, 21:32
View user's profile Send private message Reply with quote
asmrox



Joined: 19 Jan 2008
Posts: 160
asmrox 15 Feb 2008, 22:06
ctrl+f, not found. Only *Ex ones.

run:
rundll32 user32.dll,CreateWindowA
and
rundll32 user32.dll,CreateWindowExA
Post 15 Feb 2008, 22:06
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20513
Location: In your JS exploiting you and your system
revolution 15 Feb 2008, 22:15
This is correct, CreateWindow is a macro in C that puts the value 0 as the dwExStyle parameter and calls CreateWindowEx.

This is also the same with DialogBox which is a macro for DialogBoxParam with a 0 value for dwInitParam.

There is actually quite a lot of this happening in the API. The above two are just the common ones that catch people out most often.
Post 15 Feb 2008, 22:15
View user's profile Send private message Visit poster's website Reply with quote
OzzY



Joined: 19 Sep 2003
Posts: 1029
Location: Everywhere
OzzY 16 Feb 2008, 01:03
revolution wrote:
This is correct, CreateWindow is a macro in C that puts the value 0 as the dwExStyle parameter and calls CreateWindowEx.

This is also the same with DialogBox which is a macro for DialogBoxParam with a 0 value for dwInitParam.

There is actually quite a lot of this happening in the API. The above two are just the common ones that catch people out most often.


Oh yeah! You reminded well, revolution! It's really a macro.
I remember not using DialogBox() anymore because I wanted to use the actual API instead.
Post 16 Feb 2008, 01:03
View user's profile Send private message 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-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.