InjectLibrary

The InjectLibrary function loads a library (dll) inside a process.

function InjectLibrary(
  dwProcessID: DWord;
  pLibraryName: PChar
): Boolean; stdcall;

Parameters

dwProcessID
[in] ProcessID or ProcessHandle to the target process which shall load the library.
 
 
pLibraryName
[in] Library name which shall be loaded. If the Library is not stored in the windows directory or the target process path, you have to use the full path. If the library is stored inside the source process path, you can use GetExePath and the library name.
 
 
Remarks

InjectLibrary is using CreateRemoteThread for WinNT Systems and a ContextModification for Win9x Systems.

 

Return Values

If the function succeeds, the return value is true.

If the function fails, the return value is false.

 

Requirements

Client Requires Windows XP, Windows 2000 Professional, Windows NT Workstation, Windows Me, Windows 98, or Windows 95.
Header

Declared in uallHook.pas