Line | |
---|
1 | /** @file
|
---|
2 | *
|
---|
3 | * VBoxDisp -- Windows Guest OpenGL ICD
|
---|
4 | *
|
---|
5 | * Copyright (C) 2006-2007 innotek GmbH
|
---|
6 | *
|
---|
7 | * This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
8 | * available from http://www.virtualbox.org. This file is free software;
|
---|
9 | * you can redistribute it and/or modify it under the terms of the GNU
|
---|
10 | * General Public License as published by the Free Software Foundation,
|
---|
11 | * in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
|
---|
12 | * distribution. VirtualBox OSE is distributed in the hope that it will
|
---|
13 | * be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
14 | *
|
---|
15 | * If you received this file as part of a commercial VirtualBox
|
---|
16 | * distribution, then only the terms of your commercial VirtualBox
|
---|
17 | * license agreement apply instead of the previous paragraph.
|
---|
18 | *
|
---|
19 | */
|
---|
20 | #include "VBoxOGL.h"
|
---|
21 | #include <VBox/version.h>
|
---|
22 | #include <iprt/cdefs.h>
|
---|
23 | #include <iprt/assert.h>
|
---|
24 |
|
---|
25 |
|
---|
26 | /**
|
---|
27 | * Dll entrypoint
|
---|
28 | *
|
---|
29 | * @returns type size or 0 if unknown type
|
---|
30 | * @param hDLLInst Dll instance handle
|
---|
31 | * @param fdwReason Callback reason
|
---|
32 | * @param lpvReserved Reserved
|
---|
33 | */
|
---|
34 | BOOL WINAPI DllMain(HINSTANCE hDLLInst, DWORD fdwReason, LPVOID lpvReserved)
|
---|
35 | {
|
---|
36 | BOOL bStatus = TRUE;
|
---|
37 |
|
---|
38 | switch (fdwReason)
|
---|
39 | {
|
---|
40 | case DLL_PROCESS_ATTACH:
|
---|
41 | return VBoxOGLInit(hDLLInst);
|
---|
42 |
|
---|
43 | case DLL_PROCESS_DETACH:
|
---|
44 | VBoxOGLExit();
|
---|
45 | return TRUE;
|
---|
46 |
|
---|
47 | case DLL_THREAD_ATTACH:
|
---|
48 | break;
|
---|
49 |
|
---|
50 | case DLL_THREAD_DETACH:
|
---|
51 | return VBoxOGLThreadDetach();
|
---|
52 |
|
---|
53 | default:
|
---|
54 | break;
|
---|
55 | }
|
---|
56 |
|
---|
57 | return bStatus;
|
---|
58 | }
|
---|
59 |
|
---|
60 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.