ReactOS  0.4.15-dev-1068-g467feb9
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  {
15  case DLL_PROCESS_ATTACH:
16  /* Initialize Context list */
18  /* no break */
19  case DLL_THREAD_ATTACH:
20  break;
21 
22  case DLL_THREAD_DETACH:
23  /* Set NULL context for this thread */
25  break;
26  case DLL_PROCESS_DETACH:
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 }
void IntDeleteAllICDs(void)
Definition: icdload.c:357
#define TRUE
Definition: types.h:120
#define DLL_THREAD_ATTACH
Definition: compat.h:132
#define DLL_PROCESS_ATTACH
Definition: compat.h:131
BOOL WINAPI DllMain(HINSTANCE hDLLInst, DWORD fdwReason, LPVOID lpvReserved)
Definition: dllmain.c:52
#define DLL_THREAD_DETACH
Definition: compat.h:133
HINSTANCE hInstance
Definition: charmap.c:20
unsigned int BOOL
Definition: ntddk_ex.h:94
smooth NULL
Definition: ftsmooth.c:416
_Reserved_ PVOID Reserved
Definition: winddi.h:3974
#define DLL_PROCESS_DETACH
Definition: compat.h:130
void IntDeleteAllContexts(void)
Definition: wgl.c:931
#define WINAPI
Definition: msvc.h:6
unsigned long DWORD
Definition: ntddk_ex.h:95
BOOL WINAPI wglMakeCurrent(HDC hdc, HGLRC hglrc)
Definition: wgl.c:650
#define InitializeListHead(ListHead)
Definition: env_spec_w32.h:944
LIST_ENTRY ContextListHead
Definition: wgl.c:17
PVOID PVOID PWCHAR PVOID USHORT PULONG Reason
Definition: env.c:45