Chameleon

Chameleon Svn Source Tree

Root/branches/cparm/i386/modules/HelloWorld/HelloWorld.c

1/*
2 * Copyright (c) 2009 Evan Lojewski. All rights reserved.
3 *
4 */
5
6#include "libsaio.h"
7#include "modules.h"
8
9void helloWorld2(void* binary, void* arg2, void* arg3, void* arg4, void* arg5, void* arg6)
10{
11printf("Hello world from ExecKernel hook. Binary located at 0x%X\n", binary);
12getc();
13
14}
15
16void helloWorld(void* arg1, void* arg2, void* arg3, void* arg4, void* arg5, void* arg6)
17{
18printf("Hello world from PreBoot hook.\n");
19getc();
20
21}
22
23void HelloWorld_start()
24{
25register_hook_callback("ExecKernel", &helloWorld2);
26register_hook_callback("PreBoot", &helloWorld);
27
28}
29
30

Archive Download this file

Revision: 789