[−][src]Function djin::inject_dll
pub fn inject_dll<P: AsRef<Path>>(
process: HANDLE,
dll: P,
function: &[u8]
) -> Result<DWORD, DWORD>
Injects the given DLL into the process specified by handle, optionally calling the given function in the DLL.
To skip calling an initialization function, pass NO_INIT_FN
.
Returns
The function returns Ok with the initialization function's return code (0 if NO_INIT_FN
is passed)
If an error occurs, this function returns the error code from GetLastError.