flat assembler
Message board for the users of flat assembler.

Index > Windows > dllx64 format

Author
Thread Post new topic Reply to topic
fdsc



Joined: 22 Nov 2012
Posts: 2
fdsc
Hello
Load FASM 1.70.03 and compile dll with PE64 DLL.

On LoadLibrary GetLastError return 193: %1 do not Win32 application.

Code:
format PE64 GUI 5.0 DLL
entry main

section '.text' code readable executable


        main:
                mov     rax,            1
                ret

;data        fixups
;           dd 0,8
;end         data


section '.reloc' data readable discardable
 data fixups
      dd 0, 8
 end data                           
    


and errormsg.asm in examples already 193 error.

I have Windows 7 x64 without SP.

How do coorect dll?

P.S. Don't links, i do read this forum, but no find well result.
Post 22 Nov 2012, 22:17
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17270
Location: In your JS exploiting you and your system
revolution
For a DLL you will need an export section. See the examples folder in the fasm download for some ways to make DLLs.
Post 23 Nov 2012, 00:06
View user's profile Send private message Visit poster's website Reply with quote
fdsc



Joined: 22 Nov 2012
Posts: 2
fdsc
errormsg.asm in examples already 193 error.
Post 23 Nov 2012, 12:45
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-2020, Tomasz Grysztar.

Powered by rwasa.