mirror of
https://github.com/reactos/reactos.git
synced 2024-07-11 07:05:12 +00:00
Added GdiDllInitialize()
svn path=/trunk/; revision=1000
This commit is contained in:
parent
f8fe1ea0b1
commit
7b02da36f7
|
@ -5658,6 +5658,14 @@ WINBOOL
|
|||
STDCALL
|
||||
FrameRgn(HDC, HRGN, HBRUSH, int, int);
|
||||
|
||||
WINBOOL
|
||||
STDCALL
|
||||
GdiDllInitialize (HANDLE, DWORD, LPVOID);
|
||||
|
||||
VOID
|
||||
STDCALL
|
||||
GdiProcessSetup (VOID);
|
||||
|
||||
int
|
||||
STDCALL
|
||||
GetROP2(HDC);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
; $Id: gdi32.def,v 1.4 1999/10/26 19:47:03 ea Exp $
|
||||
; $Id: gdi32.def,v 1.5 2000/02/22 20:55:23 ekohl Exp $
|
||||
;
|
||||
; gdi32.def
|
||||
;
|
||||
|
@ -114,11 +114,13 @@ FlattenPath@4
|
|||
FloodFill@16
|
||||
FrameRgn@20
|
||||
GdiComment@12
|
||||
GdiDllInitialize@12
|
||||
GdiFlush@0
|
||||
GdiGetBatchLimit@0
|
||||
GdiPlayDCScript@24
|
||||
GdiPlayJournal@20
|
||||
GdiPlayScript@28
|
||||
GdiProcessSetup@0
|
||||
GdiSetBatchLimit@4
|
||||
GetArcDirection@4
|
||||
GetAspectRatioFilterEx@8
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
; $Id: gdi32.edf,v 1.2 1999/10/26 19:47:04 ea Exp $
|
||||
; $Id: gdi32.edf,v 1.3 2000/02/22 20:55:23 ekohl Exp $
|
||||
;
|
||||
; gdi32.def
|
||||
;
|
||||
|
@ -114,11 +114,13 @@ FlattenPath=FlattenPath@4
|
|||
FloodFill=FloodFill@16
|
||||
FrameRgn=FrameRgn@20
|
||||
GdiComment=GdiComment@12
|
||||
GdiDllInitialize=GdiDllInitialize@12
|
||||
GdiFlush=GdiFlush@0
|
||||
GdiGetBatchLimit=GdiGetBatchLimit@0
|
||||
GdiPlayDCScript=GdiPlayDCScript@24
|
||||
GdiPlayJournal=GdiPlayJournal@20
|
||||
GdiPlayScript=GdiPlayScript@28
|
||||
GdiProcessSetup=GdiProcessSetup@0
|
||||
GdiSetBatchLimit=GdiSetBatchLimit@4
|
||||
GetArcDirection=GetArcDirection@4
|
||||
GetAspectRatioFilterEx=GetAspectRatioFilterEx@8
|
||||
|
|
|
@ -1,14 +1,19 @@
|
|||
/*
|
||||
* dllmain.c
|
||||
*
|
||||
* $Revision: 1.2 $
|
||||
* $Author: ea $
|
||||
* $Date: 1999/05/23 07:41:33 $
|
||||
* $Revision: 1.3 $
|
||||
* $Author: ekohl $
|
||||
* $Date: 2000/02/22 20:55:36 $
|
||||
*
|
||||
*/
|
||||
|
||||
#include <windows.h>
|
||||
#include <win32k/win32k.h>
|
||||
|
||||
/*
|
||||
* GDI32.DLL doesn't have an entry point. The initialization is done by a call
|
||||
* to GdiDllInitialize(). This call is done from the entry point of USER32.DLL.
|
||||
*/
|
||||
BOOL
|
||||
WINAPI
|
||||
DllMain (
|
||||
|
@ -20,4 +25,44 @@ DllMain (
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
BOOL
|
||||
WINAPI
|
||||
GdiDllInitialize (
|
||||
HANDLE hDll,
|
||||
DWORD dwReason,
|
||||
LPVOID lpReserved
|
||||
)
|
||||
{
|
||||
switch (dwReason)
|
||||
{
|
||||
case DLL_PROCESS_ATTACH:
|
||||
if (W32kInitialize () == FALSE)
|
||||
return FALSE;
|
||||
GdiProcessSetup ();
|
||||
break;
|
||||
|
||||
case DLL_THREAD_ATTACH:
|
||||
break;
|
||||
|
||||
default:
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
#if 0
|
||||
/* FIXME: working teb handling needed */
|
||||
NtCurrentTeb()->GdiTebBatch.Offset = 0;
|
||||
NtCurrentTeb()->GdiBatchCount = 0;
|
||||
#endif
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
VOID
|
||||
WINAPI
|
||||
GdiProcessSetup (VOID)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/* EOF */
|
||||
|
|
1
reactos/lib/gdi32/misc/.cvsignore
Normal file
1
reactos/lib/gdi32/misc/.cvsignore
Normal file
|
@ -0,0 +1 @@
|
|||
win32k.c
|
Loading…
Reference in a new issue