Author: greatlrd
Date: Sun May 25 12:52:28 2008
New Revision: 33701
URL:
http://svn.reactos.org/svn/reactos?rev=33701&view=rev
Log:
implement LpkDllInitialize for lpk
Modified:
trunk/reactos/dll/win32/lpk/dllmain.c
trunk/reactos/dll/win32/lpk/ros_lpk.h
Modified: trunk/reactos/dll/win32/lpk/dllmain.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/lpk/dllmain.c?re…
==============================================================================
--- trunk/reactos/dll/win32/lpk/dllmain.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/lpk/dllmain.c [iso-8859-1] Sun May 25 12:52:28 2008
@@ -21,7 +21,7 @@
LPVOID lpReserved)
{
- return TRUE;
+ return LpkDllInitialize(hDll,dwReason,lpReserved);
}
BOOL
@@ -31,5 +31,18 @@
DWORD dwReason,
LPVOID lpReserved)
{
- return DllMain(hDll,dwReason,lpReserved);
+ switch(dwReason)
+ {
+ case DLL_PROCESS_ATTACH:
+ DisableThreadLibraryCalls(hDll);
+ /* Tell usp10 it is activated usp10 */
+ LpkPresent();
+ break;
+
+ default:
+ break;
+ }
+
+ return TRUE;
}
+
Modified: trunk/reactos/dll/win32/lpk/ros_lpk.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/lpk/ros_lpk.h?re…
==============================================================================
--- trunk/reactos/dll/win32/lpk/ros_lpk.h [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/lpk/ros_lpk.h [iso-8859-1] Sun May 25 12:52:28 2008
@@ -10,6 +10,9 @@
#include <windows.h>
#include <ndk/ntndk.h>
+
+/* FIXME USP10 api that does not have prototype in any include file */
+VOID WINAPI LpkPresent();
/* FIXME move _LPK_LPEDITCONTROL_LIST to global place so user32 can access it */
typedef struct _LPK_LPEDITCONTROL_LIST