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?
Posted on 2002-11-20 21:17:40 by msmith
Platform SDK and the holy bible :)
Posted on 2002-11-21 01:07:47 by bazik
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
Posted on 2002-11-21 16:38:11 by CyberGuy