News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

Little Question About Syntax

Started by Ener, September 21, 2015, 06:06:14 AM

Previous topic - Next topic

qWord

for the sake of completeness: You can also directly work with the pointer to import function, but this requires manual name mangling:

EXITPROCESS typedef proto dwExitCode:DWORD
EXTERNDEF _imp__ExitProcess@4: ptr EXITPROCESS ; is const pointer to ExitProcess (placed in the IAT as part of an JMP-opcode)
...
invoke _imp__ExitProcess@4,0

MREAL macros - when you need floating point arithmetic while assembling!

Ener

Quote from: qWord on September 21, 2015, 08:44:30 AM
for the sake of completeness: You can also directly work with the pointer to import function, but this requires manual name mangling:

EXITPROCESS typedef proto dwExitCode:DWORD
EXTERNDEF _imp__ExitProcess@4: ptr EXITPROCESS ; is const pointer to ExitProcess (placed in the IAT as part of an JMP-opcode)
...
invoke _imp__ExitProcess@4,0



thanks for your reply

I was not aware of this, so if it's a const pointer it doesn't need relocation, and would be easier but i don't understand how this could be placed in the IAT, sorry but what do you mean by "as part of an JMP-opcode"?