Last change
on this file since 34575 was 28800, checked in by vboxsync, 15 years ago |
Automated rebranding to Oracle copyright/license strings via filemuncher
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Id Revision
|
File size:
1.1 KB
|
Line | |
---|
1 | /*
|
---|
2 | * Copyright (C) 2006-2007 Oracle Corporation
|
---|
3 | *
|
---|
4 | * This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
5 | * available from http://www.virtualbox.org. This file is free software;
|
---|
6 | * you can redistribute it and/or modify it under the terms of the GNU
|
---|
7 | * General Public License (GPL) as published by the Free Software
|
---|
8 | * Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
9 | * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
10 | * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
11 | */
|
---|
12 |
|
---|
13 | /*******************************************************************************
|
---|
14 | * Header Files *
|
---|
15 | *******************************************************************************/
|
---|
16 | #include <windows.h>
|
---|
17 | #include <VBoxHook.h>
|
---|
18 | #include <stdio.h>
|
---|
19 |
|
---|
20 | int main(int argc, char **argv)
|
---|
21 | {
|
---|
22 | printf("Enabling global hook\n");
|
---|
23 |
|
---|
24 | HANDLE hEvent = CreateEvent(NULL, FALSE, FALSE, VBOXHOOK_GLOBAL_EVENT_NAME);
|
---|
25 |
|
---|
26 | VBoxInstallHook(GetModuleHandle("VBoxHook.dll"));
|
---|
27 | getchar();
|
---|
28 |
|
---|
29 | printf("Disabling global hook\n");
|
---|
30 | VBoxRemoveHook();
|
---|
31 | return 0;
|
---|
32 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.