Windows Dynamic-Link Libraries 14

 

 

 

 

 

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.

 

 

 

 

< Windows Dynamic Link Library 13 | Windows Dynamic Link Library | Win32 Programming | Process Status Help APIs >