source: trunk/kLdr/testcase/tstDllMainStub.c@ 2875

Last change on this file since 2875 was 2863, checked in by bird, 19 years ago

bare bone dll testcase.

File size: 1.6 KB
Line 
1/* $Id: $ */
2/** @file
3 *
4 * kLdr testcase - DLL Stub.
5 *
6 * Copyright (c) 2006 knut st. osmundsen <bird-kbuild-src@anduin.net>
7 *
8 *
9 * This file is part of kLdr.
10 *
11 * kLdr is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version.
15 *
16 * kLdr is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with kLdr; if not, write to the Free Software
23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24 *
25 */
26
27
28/*******************************************************************************
29* Header Files *
30*******************************************************************************/
31#include "tst.h"
32
33#ifdef __OS2__
34# define INCL_BASE
35# include <os2.h>
36
37#elif defined(__WIN__)
38# include <windows.h>
39
40#else
41# error "port me"
42#endif
43
44
45#ifdef __OS2__
46/**
47 * OS/2 DLL 'main'
48 */
49ULONG _System _DLL_InitTerm(HMODULE hmod, ULONG fFlag)
50{
51 return TRUE;
52}
53
54#elif defined(__WIN__)
55
56/**
57 * Window DLL 'main'
58 */
59BOOL __stdcall DllMain(HANDLE hDllHandle, DWORD dwReason, LPVOID lpReserved)
60{
61 return TRUE;
62}
63
64#else
65# error "port me"
66#endif
67
Note: See TracBrowser for help on using the repository browser.