Dynamic-Link Library Functions
The following functions are used in dynamic linking.
Function | Description |
---|---|
AddDllDirectory | Adds a directory to the process DLL search path. |
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. |
LoadPackagedLibrary | Maps the specified packaged module and its dependencies into the address space of the calling process. Only Windows Store apps can call this function. |
RemoveDllDirectory | Removes a directory that was added to the process DLL search path by using AddDllDirectory. |
SetDefaultDllDirectories | Specifies a default set of directories to search when the calling process loads a DLL. |
SetDllDirectory | Modifies the search path used to locate DLLs for the application. |
Obsolete Functions
These functions are provided only for compatibility with 16-bit versions of Windows.
Phản hồi
https://aka.ms/ContentUserFeedback.
Sắp ra mắt: Trong năm 2024, chúng tôi sẽ dần gỡ bỏ Sự cố với GitHub dưới dạng cơ chế phản hồi cho nội dung và thay thế bằng hệ thống phản hồi mới. Để biết thêm thông tin, hãy xem:Gửi và xem ý kiến phản hồi dành cho