flat assembler
Message board for the users of flat assembler.
Index
> Windows > Dll fails to load |
Author |
|
Garthower 28 Jul 2008, 07:43
Try this code:
Code: format PE64 GUI DLL entry DllMain include 'C:\fasm\INCLUDE\win64a.inc' section '.code' code readable executable proc DllMain hinstDLL equ rcx fdwReasonequ equ edx lpvReserved equ r8 mov eax,TRUE ret endp section '.idata' import data readable writeable library kernel,'KERNEL32.DLL' import kernel,\ ExitProcess,'ExitProcess', \ GetCurrentProcess,'GetCurrentProcess',\ WriteProcessMemory,'WriteProcessMemory' section '.edata' export data readable export 'StackableSub.dll',\ DllMain,'DllMain' section '.reloc' fixups data discardable |
|||
28 Jul 2008, 07:43 |
|
roxaz 28 Jul 2008, 07:56
freakin works :O thx.
EDIT: cool, i forgot code section.. what an idiot... |
|||
28 Jul 2008, 07:56 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.