c - Which header file loads the DLLs in Win32 api? -
for example, call messagebox need include windows.h, assume header file actual loadlibrary.
how work?
the windows header file declares messagebox
declares not define it. in other words, header file merely declares there function particular prototype defined somewhere else.
the definition provided import library. messagebox
, import library user32.lib
. import library passed linker , provides definition.
the loading of windows dll implements messagebox
, user32.dll done loader. linker emits executable file contains metadata declaring dependent dlls, , functions must imported. that's pe import table. @ process load time, loader reads import table, loads dependent dlls, , resolves references.
Comments
Post a Comment