Skip to content

Latest commit

 

History

History
50 lines (32 loc) · 1.07 KB

LoadLibrary.md

File metadata and controls

50 lines (32 loc) · 1.07 KB

Home

Function name : LoadLibrary

Group: Dynamic-Link Library - Library: kernel32


The LoadLibrary function maps the specified executable module into the address space of the calling process.


Code examples:

Using LoadLibrary
Loading a string resource from an executable file

Declaration:

HMODULE LoadLibrary(
  LPCTSTR lpFileName   // file name of module
);  

FoxPro declaration:

DECLARE INTEGER LoadLibrary IN kernel32;
	STRING lpLibFileName  

Parameters:

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


Return value:

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


Comments:

Once you get a return from this function, you probably know how to use it