static void task_start_hook( long p0, long p1, long p2, long p3, long p4, long p5, long p6, long p7, long p8, long p9) { _CreateTask("SpyTask", 0x19, 0x2000, spytask, 0); taskprev(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9 ); }
static void task_start_hook( long p0, long p1, long p2, long p3, long p4, long p5, long p6, long p7, long p8, long p9) { _CreateTask("SpyTask", 0x19, 0x2000, spytask, 0); // First creates the SpyTask, i.e. the main CHDK loop //create our second keypress task _CreateTask("SpyTask2", 0x18, 0x2000, kbd_process_task, 0); taskprev(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9 ); // then, whatever was the call intended to be... }