mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 13:02:59 +00:00
71 lines
935 B
C
71 lines
935 B
C
/*
|
|
* dllmain.c
|
|
*
|
|
* $Revision: 1.8 $
|
|
* $Author: royce $
|
|
* $Date: 2003/08/04 00:28:44 $
|
|
*
|
|
*/
|
|
|
|
#include <windows.h>
|
|
#include <win32k/win32k.h>
|
|
#include <internal/heap.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 (
|
|
HANDLE hDll,
|
|
DWORD dwReason,
|
|
LPVOID lpReserved
|
|
)
|
|
{
|
|
return TRUE;
|
|
}
|
|
|
|
|
|
/*
|
|
* @implemented
|
|
*/
|
|
BOOL
|
|
WINAPI
|
|
GdiDllInitialize (
|
|
HANDLE hDll,
|
|
DWORD dwReason,
|
|
LPVOID lpReserved
|
|
)
|
|
{
|
|
switch (dwReason)
|
|
{
|
|
case DLL_PROCESS_ATTACH:
|
|
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)
|
|
{
|
|
hProcessHeap = RtlGetProcessHeap();
|
|
}
|
|
|
|
/* EOF */
|