source: trunk/kStuff/kLdr/kLdrExeStub-win.c@ 3573

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

kHlp work...

  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
1/* $Id: kLdrExeStub-win.c 3573 2007-08-31 04:09:23Z bird $ */
2/** @file
3 *
4 * kLdr - Windows Loader 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 <k/kLdr.h>
32#include <Windows.h>
33#include "kLdrInternal.h"
34
35
36/*******************************************************************************
37* Global Variables *
38*******************************************************************************/
39/** The stub arguments. */
40static const KLDREXEARGS g_Args =
41{
42 /* .fFlags = */ KLDRDYLD_LOAD_FLAGS_RECURSIVE_INIT,
43 /* .enmSearch = */ KLDRDYLD_SEARCH_WINDOWS,
44 /* .szExecutable = */ "tst-0", /* just while testing */
45 /* .szDefPrefix = */ "",
46 /* .szDefSuffix = */ "",
47 /* .szLibPath = */ ""
48};
49
50/**
51 * Windows 'main'.
52 */
53int WindowsMain(void)
54{
55 kLdrDyldLoadExe(&g_Args, NULL);
56 /* won't happen */
57 return 0;
58}
59
Note: See TracBrowser for help on using the repository browser.