Skip to content

Latest commit

 

History

History
55 lines (38 loc) · 1.5 KB

LoadLibraryEx.md

File metadata and controls

55 lines (38 loc) · 1.5 KB

Home

Function name : LoadLibraryEx

Group: Dynamic-Link Library - Library: kernel32


Maps the specified executable module into the address space of the calling process. The executable module can be a .dll or an .exe file. The specified module may cause other modules to be mapped into the address space.


Code examples:

Storing registration key in the resources of an executable file
How to display a user-defined icon in the MessageBox dialog
Exporting DLL icon resources as .ICO files

Declaration:

HMODULE LoadLibraryEx(
	LPCTSTR lpFileName,
	HANDLE hFile,
	DWORD dwFlags
);  

FoxPro declaration:

DECLARE INTEGER LoadLibraryEx IN kernel32;
	STRING  lpFileName,;
	INTEGER hFile,;
	INTEGER dwFlags
  

Parameters:

lpFileName [in] Pointer to a null-terminated string that names the executable module (either a .dll or an .exe file).

hFile This parameter is reserved for future use. It must be NULL.

dwFlags [in] Action to take when loading the module. If no flags are specified, the behavior of this function is identical to that of the LoadLibrary function.


Return value:

If the function succeeds, the return value is a handle to the mapped executable module.