implement LpkDllInitialize for lpk

svn path=/trunk/; revision=33701
This commit is contained in:
Magnus Olsen 2008-05-25 17:52:28 +00:00
parent b2744bf34b
commit b5ab26f7a3
2 changed files with 18 additions and 2 deletions

View file

@ -21,7 +21,7 @@ DllMain (
LPVOID lpReserved)
{
return TRUE;
return LpkDllInitialize(hDll,dwReason,lpReserved);
}
BOOL
@ -31,5 +31,18 @@ LpkDllInitialize (
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;
}

View file

@ -11,6 +11,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
{