Below is a code snippet from this forum. It is typically like a section found in many programs.
library kernel32,'KERNEL32.DLL',\
user32,'USER32.DLL'
kernel32:
import ExitProcess,'ExitProcess',\
GetModuleHandle,'GetModuleHandleA'
user32:
import CreateWindowEx,'CreateWindowExA',\
DefWindowProc,'DefWindowProcA',\
DispatchMessage,'DispatchMessageA',\
GetMessage,'GetMessageA',\
LoadCursor,'LoadCursorA',\
LoadIcon,'LoadIconA',\
PostQuitMessage,'PostQuitMessage',\
RegisterClass,'RegisterClassA',\
TranslateMessage,'TranslateMessage'
The question is where is it outlined which procedure (or function) is associated with which dll? In other words, how did the writer of this snippet know which imports were associated with kernel32 and which were associated with user32?
library kernel32,'KERNEL32.DLL',\
user32,'USER32.DLL'
kernel32:
import ExitProcess,'ExitProcess',\
GetModuleHandle,'GetModuleHandleA'
user32:
import CreateWindowEx,'CreateWindowExA',\
DefWindowProc,'DefWindowProcA',\
DispatchMessage,'DispatchMessageA',\
GetMessage,'GetMessageA',\
LoadCursor,'LoadCursorA',\
LoadIcon,'LoadIconA',\
PostQuitMessage,'PostQuitMessage',\
RegisterClass,'RegisterClassA',\
TranslateMessage,'TranslateMessage'
The question is where is it outlined which procedure (or function) is associated with which dll? In other words, how did the writer of this snippet know which imports were associated with kernel32 and which were associated with user32?
Platform SDK and the holy bible :)
library kernel32,'KERNEL32.DLL',\
user32,'USER32.DLL'
Tells it which library it is so then you can just do
kernel32:
import functionametouse,functionname
Kernel32 is already defined as 'KERNEL32.DLL'
unless you mean how the functions are called
user32,'USER32.DLL'
Tells it which library it is so then you can just do
kernel32:
import functionametouse,functionname
Kernel32 is already defined as 'KERNEL32.DLL'
unless you mean how the functions are called