ReactOS 0.4.15-dev-8245-gd24675b
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
12{
13 switch ( Reason )
14 {
16 /* Initialize Context list */
18 /* no break */
20 break;
21
23 /* Set NULL context for this thread */
25 break;
27 /* Clean up */
28 if (!Reserved)
29 {
30 /* The process is not shutting down: release everything */
34 }
35 break;
36 }
37
38 return TRUE;
39}
HINSTANCE hInstance
Definition: charmap.c:19
#define NULL
Definition: types.h:112
#define TRUE
Definition: types.h:120
BOOL WINAPI DllMain(HINSTANCE hDLLInst, DWORD fdwReason, LPVOID lpvReserved)
Definition: dllmain.c:52
#define DLL_THREAD_DETACH
Definition: compat.h:133
#define DLL_PROCESS_ATTACH
Definition: compat.h:131
#define DLL_PROCESS_DETACH
Definition: compat.h:130
#define DLL_THREAD_ATTACH
Definition: compat.h:132
#define InitializeListHead(ListHead)
Definition: env_spec_w32.h:944
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
void IntDeleteAllICDs(void)
Definition: icdload.c:357
PVOID PVOID PWCHAR PVOID USHORT PULONG Reason
Definition: env.c:47
LIST_ENTRY ContextListHead
Definition: wgl.c:17
void IntDeleteAllContexts(void)
Definition: wgl.c:931
BOOL WINAPI wglMakeCurrent(HDC hdc, HGLRC hglrc)
Definition: wgl.c:650
_Reserved_ PVOID Reserved
Definition: winddi.h:3974
#define WINAPI
Definition: msvc.h:6