b3b334d4cbec42026af49f35e7bad46eff76449a
[reactos.git] / lib / gdi32 / main / dllmain.c
1 /*
2  * dllmain.c
3  *
4  * $Revision$
5  * $Author$
6  * $Date$
7  *
8  */
9
10 #include <windows.h>
11 #include <win32k/win32k.h>
12
13 /*
14  * GDI32.DLL doesn't have an entry point. The initialization is done by a call
15  * to GdiDllInitialize(). This call is done from the entry point of USER32.DLL.
16  */
17 BOOL
18 WINAPI
19 DllMain (
20         HANDLE  hDll,
21         DWORD   dwReason,
22         LPVOID  lpReserved
23         )
24 {
25         return TRUE;
26 }
27
28
29 BOOL
30 WINAPI
31 GdiDllInitialize (
32         HANDLE  hDll,
33         DWORD   dwReason,
34         LPVOID  lpReserved
35         )
36 {
37         switch (dwReason)
38         {
39                 case DLL_PROCESS_ATTACH:
40                         GdiProcessSetup ();
41                         break;
42
43                 case DLL_THREAD_ATTACH:
44                         break;
45
46                 default:
47                         return FALSE;
48         }
49
50 #if 0
51         /* FIXME: working teb handling needed */
52         NtCurrentTeb()->GdiTebBatch.Offset = 0;
53         NtCurrentTeb()->GdiBatchCount = 0;
54 #endif
55
56         return TRUE;
57 }
58
59 VOID
60 WINAPI
61 GdiProcessSetup (VOID)
62 {
63
64 }
65
66 /* EOF */