ReactOS 0.4.16-dev-205-g7b2bb7e
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 {
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}
#define NULL
Definition: types.h:112
#define TRUE
Definition: types.h:120
#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
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