#include <sys/types.h>
#include <mach/error.h>
#include <mach/vm_types.h>
#include <stddef.h>
Go to the source code of this file.
Defines | |
| #define | err_threadEntry_image_not_found (err_local|1) |
| #define | INJECT_ENTRY injectEntry |
| #define | INJECT_ENTRY_SYMBOL "injectEntry" |
Typedefs | |
| typedef void(* | mach_inject_entry )(ptrdiff_t codeOffset, void *paramBlock, size_t paramSize) |
Functions | |
| mach_error_t | mach_inject (const mach_inject_entry threadEntry, const void *paramBlock, size_t paramSize, pid_t targetProcess, vm_size_t stackSize) |
| Starts executing threadEntry in a new thread in the process specified by targetProcess. | |
| mach_error_t | machImageForPointer (const void *pointer, const void **image, unsigned long *size) |
| Given a pointer, returns its Mach-O image and image size. | |
|
|
Definition at line 32 of file mach_inject.h. Referenced by machImageForPointer(). |
|
|
Definition at line 34 of file mach_inject.h. |
|
|
Definition at line 35 of file mach_inject.h. |
|
|
Definition at line 37 of file mach_inject.h. Referenced by mach_inject(). |
|
||||||||||||||||||||||||
|
Starts executing threadEntry in a new thread in the process specified by targetProcess.
Definition at line 32 of file mach_inject.c. References ASSERT_CAST, mach_inject_entry, and machImageForPointer(). |
|
||||||||||||||||
|
Given a pointer, returns its Mach-O image and image size.
Definition at line 161 of file mach_inject.c. References ASSERT_CAST, and err_threadEntry_image_not_found. Referenced by mach_inject(). |
1.3.4