|
InjectRunningProcess InjectRunningProcess loads and initializes module
lpLibraryFileName within the address space
of process hProcess.
Parameters
hProcess
Identifies the process into which module
lpLibraryFileName will be loaded.
lpLibraryFileName
Pointer to a null-terminated string that specifies the module to attach
to process hProcess. This string must specify the full path and file name of
the module to attach, as this function does not search for
lpLibraryFileName within the search path.
This parameter must not be NULL.
Return Values
| E_INVALIDARG |
Can mean any of the following:
The module lpLibraryFileName was null,
or
hProcess was zero. |
| ERROR_FILE_NOT_FOUND |
The module
lpLibraryFileName was not found. |
| E_ACCESSDENIED |
An unknown error occurred
attempting to load the module lpLibraryFileName into the address space
of hProcess. |
| S_OK |
lpLibraryFileName was successfully
loaded and initialized within the address space of
hProcess. |
|
Export Definition
|
|
Delphi
|
function InjectRunningProcess(
hProcess: THandle;
lpLibraryFileName: string): HRESULT; |
|