Initial import
git-svn-id: http://moon:8086/svn/software/trunk/libsrc/libtiff@1 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
Executable
+38
@@ -0,0 +1,38 @@
|
||||
dllshell.c ---------------------------------------------------------------
|
||||
#define STRICT
|
||||
#include <windows.h>
|
||||
#pragma hdrstop
|
||||
|
||||
#pragma argsused
|
||||
|
||||
/* DLL has an entry point LibMain || DllEntryPoint and an exit point WEP. */
|
||||
|
||||
#if defined(__FLAT__)
|
||||
|
||||
BOOL WINAPI DllEntryPoint(HINSTANCE hinstDll, DWORD fdwRreason,
|
||||
LPVOID plvReserved)
|
||||
{
|
||||
return 1; /* Indicate that the DLL was initialized successfully. */
|
||||
}
|
||||
|
||||
#else /* not flat model */
|
||||
|
||||
int FAR PASCAL LibMain(HINSTANCE hInstance, WORD wDataSegment, WORD wHeapSize,
|
||||
LPSTR lpszCmdLine)
|
||||
{
|
||||
/* The startup code for the DLL initializes the local heap(if there is one)
|
||||
with a call to LocalInit which locks the data segment. */
|
||||
|
||||
if ( wHeapSize != 0 )
|
||||
UnlockData( 0 );
|
||||
return 1; /* Indicate that the DLL was initialized successfully. */
|
||||
}
|
||||
|
||||
#endif /* __FLAT */
|
||||
|
||||
#pragma argsused
|
||||
|
||||
int FAR PASCAL WEP ( int bSystemExit )
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
Reference in New Issue
Block a user