From 937f4d3ec34ed899812101124d472500e1b3c2b1 Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Sun, 5 Dec 1999 02:49:59 +0000 Subject: [PATCH] Added USER.DllEntryPoint(). --- if1632/user.spec | 1 + windows/user.c | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/if1632/user.spec b/if1632/user.spec index 6edf61d778e..d6cfe1a0d85 100644 --- a/if1632/user.spec +++ b/if1632/user.spec @@ -349,6 +349,7 @@ file user.exe 371 pascal16 SetWindowPlacement(word ptr) SetWindowPlacement16 372 stub GetInternalIconHeader 373 pascal16 SubtractRect(ptr ptr ptr) SubtractRect16 +374 pascal DllEntryPoint(long word word word long word) USER_DllEntryPoint 375 stub DrawTextEx 376 stub SetMessageExtraInfo 378 stub SetPropEx diff --git a/windows/user.c b/windows/user.c index bda9b03fd6f..fc3e1b6c6ab 100644 --- a/windows/user.c +++ b/windows/user.c @@ -258,6 +258,28 @@ WORD WINAPI UserSignalProc( UINT uCode, DWORD dwThreadOrProcessID, return 0; } +/*********************************************************************** + * USER_DllEntryPoint (USER.374) + */ +BOOL WINAPI USER_DllEntryPoint( DWORD dwReason, HINSTANCE hInstDLL, WORD ds, + WORD wHeapSize, DWORD dwReserved1, WORD wReserved2 ) +{ + switch ( dwReason ) + { + case DLL_PROCESS_ATTACH: + /* + * We need to load the 32-bit library so as to be able + * to access the system resources stored there! + */ + if ( !LoadLibraryA("USER32.DLL") ) + { + ERR_(win)( "Could not load USER32.DLL\n" ); + return FALSE; + } + } + + return TRUE; +} /***********************************************************************