flat assembler
Message board for the users of flat assembler.

Index > Windows > Relocatable Code in Windows?

Author
Thread Post new topic Reply to topic
me239



Joined: 06 Jan 2011
Posts: 200
me239 18 Feb 2011, 05:17
Hello everyone! I want port some old DOS apps of mine I've written in assembly into Windows, specifically my patching program(located in DOS forum). The problem I'm having is locating the API's. I know it can be done by reading Kernel32/User32, but I'm not sure how to go about doing this. Does anyone know how to locate the API for lets say MessageBoxA during runtime so that it can be called?
Post 18 Feb 2011, 05:17
View user's profile Send private message Reply with quote
DOS386



Joined: 08 Dec 2006
Posts: 1905
DOS386 18 Feb 2011, 06:03
> Re: Relocatable Code in Windows?

YES

> The problem I'm having is locating the API's. I know it can be
> done by reading Kernel32/User32, but I'm not sure how to go
> about doing this. Does anyone know how to locate the API
> for lets say MessageBoxA during runtime so that it can be called

YES

http://board.flatassembler.net/topic.php?t=11170 Smile
Post 18 Feb 2011, 06:03
View user's profile Send private message Reply with quote
me239



Joined: 06 Jan 2011
Posts: 200
me239 18 Feb 2011, 07:18
DOS386 wrote:
> Re: Relocatable Code in Windows?

YES

> The problem I'm having is locating the API's. I know it can be
> done by reading Kernel32/User32, but I'm not sure how to go
> about doing this. Does anyone know how to locate the API
> for lets say MessageBoxA during runtime so that it can be called

YES

http://board.flatassembler.net/topic.php?t=11170 Smile

I don't see how I'm supposed to use his code. My code will be traveling to other EXE's without portable headers and need to at least be able to find GetProcAdress API.
Post 18 Feb 2011, 07:18
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.