News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Look for an on zip file

Started by ic2, July 07, 2005, 11:21:59 PM

Previous topic - Next topic

ic2

Hello everybody

--hutch do you still have the dynamic.asm If not do anyone have an copy of it.  It was about executing code from memory, GlobalAlloc or something like that.  If so could you post it here.

Thanks in advance

Rifleman

ic2,
Here you go...

PBrennick

[attachment deleted by admin]

hutch--

ic2,

What context do you need to do this in. What comes to mind is an old trick where you copy and API call code directly into allocated memory and call it from its start address with the normal set of arguments. Its easy to write when the procedure is within your own code because you can easily work out the minimum length from its start label and the following start label of the next procedure but with an API call, there is no easy way to do this so you usually allocate a big enough block of memory to handle the code on a test basis.

Just let us know and w should be able to find something that will show you how its done.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

ic2

Testing: i been trying to post since but something wroing

ic2

I'm having problems posting, but i got to say thanks at lease.  Hope it get through.

Thanks Rifleman

tekhead009

I read this when it was first posted, but now I'm curious; why would you wan't to execute an API function from allocated memory?

hutch--

tek,

By having the code in the memory space of the applcation instead of it being in the system memory area, it used to improve the speed of the call and when you were hammering an API at high speed, you could clock the difference.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

ic2

I can post properly with dial-up but not dsl.  Thank hutch-- is there more.  I want to do this.

ic2

It's true only a line or two for my dsl.  I got to get a new modem.  I re-installed XP and everything.