ReactOS
0.4.16-dev-1056-gbe87e00
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
Functions
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
Variables
_
c
d
e
f
g
h
i
l
m
n
o
p
s
t
u
x
Typedefs
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
x
Enumerations
_
a
b
c
d
f
i
l
m
o
p
s
t
w
x
Enumerator
a
b
c
d
e
f
g
h
i
m
n
o
p
r
s
t
u
v
w
x
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
Enumerator
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Related Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
x
Files
File List
File Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Examples
dllmain.c
Go to the documentation of this file.
1
/*
2
* COPYRIGHT: See COPYING in the top level directory
3
* PROJECT: ReactOS
4
* FILE: dll/opengl/opengl32/dllmain.c
5
* PURPOSE: OpenGL32 DLL
6
*/
7
8
#include "
opengl32.h
"
9
10
BOOL
WINAPI
11
DllMain
(
HINSTANCE
hInstance
,
DWORD
Reason
,
LPVOID
Reserved
)
12
{
13
switch
(
Reason
)
14
{
15
case
DLL_PROCESS_ATTACH
:
16
/* Initialize Context list */
17
InitializeListHead
(&
ContextListHead
);
18
/* no break */
19
case
DLL_THREAD_ATTACH
:
20
break
;
21
22
case
DLL_THREAD_DETACH
:
23
/* Set NULL context for this thread */
24
wglMakeCurrent
(
NULL
,
NULL
);
25
break
;
26
case
DLL_PROCESS_DETACH
:
27
/* Clean up */
28
if
(!
Reserved
)
29
{
30
/* The process is not shutting down: release everything */
31
wglMakeCurrent
(
NULL
,
NULL
);
32
IntDeleteAllContexts
();
33
IntDeleteAllICDs
();
34
}
35
break
;
36
}
37
38
return
TRUE
;
39
}
hInstance
HINSTANCE hInstance
Definition:
charmap.c:19
NULL
#define NULL
Definition:
types.h:112
TRUE
#define TRUE
Definition:
types.h:120
DllMain
BOOL WINAPI DllMain(HINSTANCE hDLLInst, DWORD fdwReason, LPVOID lpvReserved)
Definition:
dllmain.c:52
DLL_THREAD_DETACH
#define DLL_THREAD_DETACH
Definition:
compat.h:133
DLL_PROCESS_ATTACH
#define DLL_PROCESS_ATTACH
Definition:
compat.h:131
DLL_PROCESS_DETACH
#define DLL_PROCESS_DETACH
Definition:
compat.h:130
DLL_THREAD_ATTACH
#define DLL_THREAD_ATTACH
Definition:
compat.h:132
InitializeListHead
#define InitializeListHead(ListHead)
Definition:
env_spec_w32.h:944
BOOL
unsigned int BOOL
Definition:
ntddk_ex.h:94
DWORD
unsigned long DWORD
Definition:
ntddk_ex.h:95
IntDeleteAllICDs
void IntDeleteAllICDs(void)
Definition:
icdload.c:357
void
Definition:
nsiface.idl:2307
Reason
PVOID PVOID PWCHAR PVOID USHORT PULONG Reason
Definition:
env.c:47
opengl32.h
ContextListHead
LIST_ENTRY ContextListHead
Definition:
wgl.c:17
IntDeleteAllContexts
void IntDeleteAllContexts(void)
Definition:
wgl.c:931
wglMakeCurrent
BOOL WINAPI wglMakeCurrent(HDC hdc, HGLRC hglrc)
Definition:
wgl.c:650
Reserved
_Reserved_ PVOID Reserved
Definition:
winddi.h:3974
WINAPI
#define WINAPI
Definition:
msvc.h:6
dll
opengl
opengl32
dllmain.c
Generated on Tue Apr 29 2025 06:17:55 for ReactOS by
1.9.6