Last change
on this file since 8060 was 5999, checked in by vboxsync, 17 years ago |
The Giant CDDL Dual-License Header Change.
|
File size:
1.3 KB
|
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 (GPL) as published by the Free Software
|
---|
11 | * Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
12 | * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
13 | * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
14 | */
|
---|
15 | #include "VBoxOGL.h"
|
---|
16 | #include <VBox/version.h>
|
---|
17 | #include <iprt/cdefs.h>
|
---|
18 | #include <iprt/assert.h>
|
---|
19 |
|
---|
20 |
|
---|
21 | /**
|
---|
22 | * Dll entrypoint
|
---|
23 | *
|
---|
24 | * @returns type size or 0 if unknown type
|
---|
25 | * @param hDLLInst Dll instance handle
|
---|
26 | * @param fdwReason Callback reason
|
---|
27 | * @param lpvReserved Reserved
|
---|
28 | */
|
---|
29 | BOOL WINAPI DllMain(HINSTANCE hDLLInst, DWORD fdwReason, LPVOID lpvReserved)
|
---|
30 | {
|
---|
31 | BOOL bStatus = TRUE;
|
---|
32 |
|
---|
33 | switch (fdwReason)
|
---|
34 | {
|
---|
35 | case DLL_PROCESS_ATTACH:
|
---|
36 | return VBoxOGLInit(hDLLInst);
|
---|
37 |
|
---|
38 | case DLL_PROCESS_DETACH:
|
---|
39 | VBoxOGLExit();
|
---|
40 | return TRUE;
|
---|
41 |
|
---|
42 | case DLL_THREAD_ATTACH:
|
---|
43 | break;
|
---|
44 |
|
---|
45 | case DLL_THREAD_DETACH:
|
---|
46 | return VBoxOGLThreadDetach();
|
---|
47 |
|
---|
48 | default:
|
---|
49 | break;
|
---|
50 | }
|
---|
51 |
|
---|
52 | return bStatus;
|
---|
53 | }
|
---|
54 |
|
---|
55 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.