source: trunk/Cocoa/F-Script Anywhere/Source/SCPatch/Common/SCPatchCommon.h@ 621

Last change on this file since 621 was 153, checked in by Nicholas Riley, 21 years ago

Integrates SCPatch and mach_inject; unfinished, buggy.

File size: 530 bytes
RevLine 
[153]1#pragma once
2
3typedef struct SCPatchParams
4{
5 short version;
6 pid_t parent;
7 HFSUniStr255 parentBundleID;
8 HFSUniStr255 patchBundleID;
9 FSRef patchRef;
10} SCPatchParams;
11
12typedef mach_error_t (*SCPatchEntry)( SCPatchParams *paramBlock );
13
14#define err_couldnt_load_main_bundle (err_local|1)
15#define err_couldnt_find_injection_bundle (err_local|2)
16#define err_couldnt_load_injection_bundle (err_local|3)
17#define err_couldnt_find_injectedThread_symbol (err_local|4)
18#define err_couldnt_find_patch_bundle (err_local|5)
Note: See TracBrowser for help on using the repository browser.