source: trunk/kStuff/kLdr/testcase/tstDllMainStub.c

Last change on this file was 3601, checked in by bird, 18 years ago

license update.

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