flat assembler
Message board for the users of flat assembler.

Index > Windows > Why kernel32 in x64

Author
Thread Post new topic Reply to topic
Hotwire



Joined: 17 Sep 2015
Posts: 14
Hotwire
Hello there!

I wonder why one should import kernel32.dll, user32.dll, etc. for x64 applications?
These have both versions of functions 32 and 64? Or operating system does something to make it work compensating the difference in calling convention?
Post 23 Dec 2021, 20:59
View user's profile Send private message Visit poster's website Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 18591
Location: In your JS exploiting you and your system
revolution
It is a long story.

MS kept the '*32' naming for compatibility with "bad" applications that hardcoded the names into the source.
Post 23 Dec 2021, 22:23
View user's profile Send private message Visit poster's website Reply with quote
Furs



Joined: 04 Mar 2016
Posts: 1811
Furs
Hotwire wrote:
Hello there!

I wonder why one should import kernel32.dll, user32.dll, etc. for x64 applications?
These have both versions of functions 32 and 64? Or operating system does something to make it work compensating the difference in calling convention?
Just because it's called kernel32 doesn't mean it's not a different 64-bit DLL.
Post 24 Dec 2021, 13:33
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-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.