Last change
on this file since 49469 was 46182, checked in by vboxsync, 12 years ago |
VBoxHook.cpp: Fixed warning in WriteLog. Some other cleanups in this and related code.
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
1.2 KB
|
Line | |
---|
1 | /* $Id: dllmain.cpp 46182 2013-05-21 00:04:48Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * VBoxHook -- Global windows hook dll
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (C) 2006-2010 Oracle Corporation
|
---|
8 | *
|
---|
9 | * This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
10 | * available from http://www.virtualbox.org. This file is free software;
|
---|
11 | * you can redistribute it and/or modify it under the terms of the GNU
|
---|
12 | * General Public License (GPL) as published by the Free Software
|
---|
13 | * Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
14 | * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
15 | * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
16 | */
|
---|
17 |
|
---|
18 |
|
---|
19 | #include <Windows.h>
|
---|
20 |
|
---|
21 |
|
---|
22 | /**
|
---|
23 | * Dll entrypoint
|
---|
24 | *
|
---|
25 | * @returns type size or 0 if unknown type
|
---|
26 | * @param hDLLInst Dll instance handle
|
---|
27 | * @param fdwReason Callback reason
|
---|
28 | * @param lpvReserved Reserved
|
---|
29 | */
|
---|
30 | BOOL WINAPI DllMain(HINSTANCE hDLLInst, DWORD fdwReason, LPVOID lpvReserved)
|
---|
31 | {
|
---|
32 | switch (fdwReason)
|
---|
33 | {
|
---|
34 | case DLL_PROCESS_ATTACH:
|
---|
35 | return TRUE;
|
---|
36 |
|
---|
37 | case DLL_PROCESS_DETACH:
|
---|
38 | return TRUE;
|
---|
39 |
|
---|
40 | case DLL_THREAD_ATTACH:
|
---|
41 | return TRUE;
|
---|
42 |
|
---|
43 | case DLL_THREAD_DETACH:
|
---|
44 | return TRUE;
|
---|
45 |
|
---|
46 | default:
|
---|
47 | return TRUE;
|
---|
48 | }
|
---|
49 | }
|
---|
50 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.