flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
coconut
paste your import section here?
|
|||
![]() |
|
Razneb
Here it is.
Code: section ".idata" import data readable writeable library KERNEL32,"KERNEL32.DLL",\ USER32,"USER32.DLL",\ GDI32,"GDI32.DLL" import GDI32,\ CreateFont,"CreateFontA" import KERNEL32,\ GetModuleHandle,"GetModuleHandleA",\ OpenProcess,"OpenProcess",\ WriteProcessMemory,"WriteProcessMemory",\ ReadProcessMemory,"ReadProcessMemory",\ CloseHandle,"CloseHandle",\ ExitProcess,"ExitProcess" import USER32,\ FindWindow,"FindWindowA",\ GetWindowThreadProcessId,"GetWindowThreadProcessId",\ SendMessage,"SendMessageA",\ MessageBox,"MessageBoxA",\ RegisterClass,"RegisterClassA",\ CreateWindowEx,"CreateWindowExA",\ DefWindowProc,"DefWindowProcA",\ ShowWindow,"ShowWindow",\ LoadCursor,"LoadCursorA",\ LoadIcon,"LoadIconA",\ GetMessage,"GetMessageA",\ TranslateMessage,"TranslateMessage",\ DispatchMessage,"DispatchMessageA",\ RegisterHotkey,"RegisterHotkey",\ UnregisterHotkey,"UnregisterHotkey",\ PostQuitMessage,"PostQuitMessage" |
|||
![]() |
|
revolution
RegisterHotKey,"RegisterHotKey",\
Use a capital "K" |
|||
![]() |
|
liteonish
Umm... A bit offtopic, but I've read that even if you include the whole damn library FASM only actually includes the parts that your exe needs. If that's true, isn't there no point to including every string separately?
_________________ I just own that much. |
|||
![]() |
|
JohnFound
liteonish wrote: Umm... A bit offtopic, but I've read that even if you include the whole damn library FASM only actually includes the parts that your exe needs. If that's true, isn't there no point to including every string separately? Yes, there is no point, but visibly the people like to build its import tables manually or simply don't like to read the macro definitions... ![]() Regards. |
|||
![]() |
|
gumletis
Also if you include manuelt, you can import from other librarys them you not normaly do with, fx your own....
|
|||
![]() |
|
crc
Quote: Umm... A bit offtopic, but I've read that even if you include the whole damn library FASM only actually includes the parts that your exe needs. If that's true, isn't there no point to including every string separately? I import the parts I need manually for two reasons. First, I use a scaled down, slightly customized version of the macros. Secondly, it helps those reading my source to see exactly what functions I'm actually using. |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.