flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
revolution 29 Jan 2021, 12:39
If you add custom APIs to kernel32 then you can't use the default fasm libraries.
Something like this, where you manually construct the API tables, and remove the 'x' from win32a.inc: Code: format PE GUI 4.0 entry start include 'win32a.inc' section '.data' data readable writeable a rb MAX_PATH section '.code' code readable executable start: invoke GetSystemWow64Directory, a, MAX_PATH cmp eax, 0 je exit invoke MessageBox, 0, a, '', MB_OK exit: invoke ExitProcess, 0 section '.idata' import data readable library kernel32,'kernel32.dll',\ user32,'user32.dll' import kernel32,\ ExitProcess,'ExitProcess',\ GetSystemWow64Directory,'GetSystemWow64DirectoryA' import user32,\ MessageBox,'MessageBoxA' |
|||
![]() |
|
doutor 29 Jan 2021, 13:15
revolution wrote: If you add custom APIs to kernel32 then you can't use the default fasm libraries. Thank you my friend. Solved! ![]() |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.