flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
dieboy 17 Aug 2005, 17:51
Can anybody write pure export code? Thanks for answer
![]() _________________ ... |
|||
![]() |
|
Tomasz Grysztar 17 Aug 2005, 17:57
See this thread: http://board.flatassembler.net/topic.php?t=3943
|
|||
![]() |
|
dieboy 18 Aug 2005, 08:21
Eh.. I was searching and I couldn't find this
![]() |
|||
![]() |
|
RedGhost 18 Aug 2005, 22:42
hey, i suggest downloading some of the old fasm versions with the link provided in said thread it is http://fasm.sourceforge.net/archive/
from like 1.04+ (i think?) it has alot of hardcoded windows examples, including export, procedures, even some resource stuff, i know it helped me alot! |
|||
![]() |
|
Tomasz Grysztar 19 Aug 2005, 09:42
The table called "hints" is in fact the table of ordinal numbers - indexes into the addresses table. Each item in table of ordinals corresponds to the item of the same index in the table of names.
Thus your export should look like: Code: dd 0,0,0,rva dlldemo_name,1 dd 1,1,rva addresses_table,rva names_table,rva ordinals_table addresses_table: dd rva ShowErrorMessage ; index 0 dd rva ShowLastError ; index 1 names_table: dd rva _ShowErrorMessage dd rva _ShowLastError ordinals_table: dw 0 dw 1 dlldemo_name db 'ERRORMSG.DLL',0 _ShowErrorMessage db 'ShowErrorMessage', 0 _ShowLastError db 'ShowLastError', 0 (and remember that table of names has to sorted alphabetically) |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2023, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.