mirror of
https://github.com/reactos/reactos.git
synced 2024-07-31 08:39:05 +00:00
Added GdiDllInitialize()
svn path=/trunk/; revision=1000
This commit is contained in:
parent
f8fe1ea0b1
commit
7b02da36f7
|
@ -5658,6 +5658,14 @@ WINBOOL
|
||||||
STDCALL
|
STDCALL
|
||||||
FrameRgn(HDC, HRGN, HBRUSH, int, int);
|
FrameRgn(HDC, HRGN, HBRUSH, int, int);
|
||||||
|
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
GdiDllInitialize (HANDLE, DWORD, LPVOID);
|
||||||
|
|
||||||
|
VOID
|
||||||
|
STDCALL
|
||||||
|
GdiProcessSetup (VOID);
|
||||||
|
|
||||||
int
|
int
|
||||||
STDCALL
|
STDCALL
|
||||||
GetROP2(HDC);
|
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
|
; gdi32.def
|
||||||
;
|
;
|
||||||
|
@ -114,11 +114,13 @@ FlattenPath@4
|
||||||
FloodFill@16
|
FloodFill@16
|
||||||
FrameRgn@20
|
FrameRgn@20
|
||||||
GdiComment@12
|
GdiComment@12
|
||||||
|
GdiDllInitialize@12
|
||||||
GdiFlush@0
|
GdiFlush@0
|
||||||
GdiGetBatchLimit@0
|
GdiGetBatchLimit@0
|
||||||
GdiPlayDCScript@24
|
GdiPlayDCScript@24
|
||||||
GdiPlayJournal@20
|
GdiPlayJournal@20
|
||||||
GdiPlayScript@28
|
GdiPlayScript@28
|
||||||
|
GdiProcessSetup@0
|
||||||
GdiSetBatchLimit@4
|
GdiSetBatchLimit@4
|
||||||
GetArcDirection@4
|
GetArcDirection@4
|
||||||
GetAspectRatioFilterEx@8
|
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
|
; gdi32.def
|
||||||
;
|
;
|
||||||
|
@ -114,11 +114,13 @@ FlattenPath=FlattenPath@4
|
||||||
FloodFill=FloodFill@16
|
FloodFill=FloodFill@16
|
||||||
FrameRgn=FrameRgn@20
|
FrameRgn=FrameRgn@20
|
||||||
GdiComment=GdiComment@12
|
GdiComment=GdiComment@12
|
||||||
|
GdiDllInitialize=GdiDllInitialize@12
|
||||||
GdiFlush=GdiFlush@0
|
GdiFlush=GdiFlush@0
|
||||||
GdiGetBatchLimit=GdiGetBatchLimit@0
|
GdiGetBatchLimit=GdiGetBatchLimit@0
|
||||||
GdiPlayDCScript=GdiPlayDCScript@24
|
GdiPlayDCScript=GdiPlayDCScript@24
|
||||||
GdiPlayJournal=GdiPlayJournal@20
|
GdiPlayJournal=GdiPlayJournal@20
|
||||||
GdiPlayScript=GdiPlayScript@28
|
GdiPlayScript=GdiPlayScript@28
|
||||||
|
GdiProcessSetup=GdiProcessSetup@0
|
||||||
GdiSetBatchLimit=GdiSetBatchLimit@4
|
GdiSetBatchLimit=GdiSetBatchLimit@4
|
||||||
GetArcDirection=GetArcDirection@4
|
GetArcDirection=GetArcDirection@4
|
||||||
GetAspectRatioFilterEx=GetAspectRatioFilterEx@8
|
GetAspectRatioFilterEx=GetAspectRatioFilterEx@8
|
||||||
|
|
|
@ -1,14 +1,19 @@
|
||||||
/*
|
/*
|
||||||
* dllmain.c
|
* dllmain.c
|
||||||
*
|
*
|
||||||
* $Revision: 1.2 $
|
* $Revision: 1.3 $
|
||||||
* $Author: ea $
|
* $Author: ekohl $
|
||||||
* $Date: 1999/05/23 07:41:33 $
|
* $Date: 2000/02/22 20:55:36 $
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <windows.h>
|
#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
|
BOOL
|
||||||
WINAPI
|
WINAPI
|
||||||
DllMain (
|
DllMain (
|
||||||
|
@ -20,4 +25,44 @@ DllMain (
|
||||||
return TRUE;
|
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 */
|
/* 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