ReactOS  0.4.15-dev-1070-ge1a01de
dllmain.c File Reference
#include "opengl32.h"
Include dependency graph for dllmain.c:

Go to the source code of this file.

Functions

BOOL WINAPI DllMain (HINSTANCE hInstance, DWORD Reason, LPVOID Reserved)
 

Function Documentation

◆ DllMain()

BOOL WINAPI DllMain ( HINSTANCE  hInstance,
DWORD  Reason,
LPVOID  Reserved 
)

Definition at line 11 of file dllmain.c.

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
#define DLL_THREAD_DETACH
Definition: compat.h:133
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
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