Dynamic-Link Library Functions
The following functions are used in dynamic linking.
Function |
Description |
DisableThreadLibraryCalls() |
Disables thread attach and thread detach notifications for the specified DLL. |
DllMain() |
An optional entry point into a DLL. |
FreeLibrary() |
Decrements the reference count of the loaded DLL. When the reference count reaches zero, the module is unmapped from the address space of the calling process. |
FreeLibraryAndExitThread() |
Decrements the reference count of a loaded DLL by one, and then calls ExitThread() to terminate the calling thread. |
GetDllDirectory() |
Retrieves the application-specific portion of the search path used to locate DLLs for the application. |
GetModuleFileName() |
Retrieves the fully-qualified path for the file containing the specified module. |
GetModuleFileNameEx() |
Retrieves the fully-qualified path for the file containing the specified module. |
GetModuleHandle() |
Retrieves a module handle for the specified module. |
GetModuleHandleEx() |
Retrieves a module handle for the specified module. |
GetProcAddress() |
Retrieves the address of an exported function or variable from the specified DLL. |
LoadLibrary() |
Maps the specified executable module into the address space of the calling process. |
LoadLibraryEx() |
Maps the specified executable module into the address space of the calling process. |
SetDllDirectory() |
Modifies the search path used to locate DLLs for the application. |
Obsolete Functions
The LoadModule() function is provided only for compatibility with 16-bit versions of Windows.