Platform SDK: DLLs, Processes, and Threads

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.
GetModuleFileName Retrieves the full path and file name for the file containing the specified module.
GetModuleHandle Retrieves a module handle for the specified module.
GetProcAddress Retrieves the address of the specified exported DLL function.
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.

Obsolete Functions

These functions are provided only for compatibility with 16-bit versions of Windows.

FreeModule
FreeProcInstance
LoadModule
MakeProcInstance