File: dllshell.c

package info (click to toggle)
povray 1%3A3.6.1-6
  • links: PTS
  • area: non-free
  • in suites: etch, etch-m68k
  • size: 31,052 kB
  • ctags: 20,305
  • sloc: ansic: 110,032; cpp: 86,573; sh: 13,595; pascal: 5,942; asm: 2,994; makefile: 1,747; ada: 1,637
file content (38 lines) | stat: -rw-r--r-- 893 bytes parent folder | download | duplicates (15)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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;
}