source: trunk/include/odinlx.h@ 9730

Last change on this file since 9730 was 9730, checked in by sandervl, 23 years ago

PF: header fix for C compiler

File size: 3.0 KB
RevLine 
[9730]1/* $Id: odinlx.h,v 1.9 2003-01-23 20:21:30 sandervl Exp $ */
[953]2
3/*
4 *
5 * Interface for running Win32 programs (compiled in OS/2)
6 *
7 * Copyright 1999 Sander van Leeuwen (sandervl@xs4all.nl)
8 *
9 *
10 * Project Odin Software License can be found in LICENSE.TXT
11 *
12 */
13#ifndef _ODINLX_H
14#define _ODINLX_H
15
[3991]16#include <win\peexe.h>
17#include <versionos2.h>
[953]18
[7797]19#define ORDINAL_REGISTERLXDLL 1238
20#define ORDINAL_UNREGISTERLXDLL 1239
21#define ORDINAL_REGISTERLXEXE 1237
22#define ORDINAL_REGISTERDUMMYEXE 1249
23
[9730]24#ifdef __cplusplus
[5288]25extern "C" {
[9730]26#endif
[5288]27
[953]28typedef ULONG (* WIN32API WIN32DLLENTRY)(ULONG hInstance, ULONG reason, LPVOID reserved);
29typedef int (* WIN32API WINMAIN)(HANDLE hInstance, HANDLE hPrevInstance, LPSTR lpCmdLine, int nShowCmd);
30
[9730]31#ifdef __cplusplus
32}
33#endif
34
35#ifdef __cplusplus
36
[953]37//******************************************************************************
38//Create LX Dll object and send process attach message
39//System dlls set EntryPoint to 0
[3991]40//Parameters:
[5288]41// HINSTANCE hInstance - OS/2 module handle
[3991]42// WIN32DLLENTRY EntryPoint - Win32 dll entrypoint address
43// PVOID pResData - pointer to win32 resource data
44// DWORD MajorImageVersion - major image/os version (for fake win32 header)
45// DWORD MinorImageVersion - minor image/os version (for fake win32 header)
46// DWORD Subsystem - subsystem type (for fake win32 header)
47// (IMAGE_SUBSYSTEM_WINDOWS_CUI/IMAGE_SUBSYSTEM_WINDOWS_GUI/IMAGE_SUBSYSTEM_WINDOWS_NATIVE)
48//
[1420]49//Returns: Odin32 module handle
[953]50//******************************************************************************
[5288]51DWORD WIN32API RegisterLxDll(HINSTANCE hInstance, WIN32DLLENTRY EntryPoint,
52 PVOID pResData,
53 DWORD MajorImageVersion = ODINNT_MAJOR_VERSION,
[3991]54 DWORD MinorImageVersion = ODINNT_MINOR_VERSION,
55 DWORD Subsystem = IMAGE_SUBSYSTEM_WINDOWS_CUI);
[9730]56#else
[953]57
[9730]58DWORD WIN32API RegisterLxDll(HINSTANCE hInstance, WIN32DLLENTRY EntryPoint,
59 PVOID pResData,
60 DWORD MajorImageVersion,
61 DWORD MinorImageVersion,
62 DWORD Subsystem) ;
63
64#endif
65
[953]66//******************************************************************************
67//Destroy LX Dll object
68//******************************************************************************
69BOOL WIN32API UnregisterLxDll(HINSTANCE hInstance);
70
71//******************************************************************************
72//Create LX Exe object and call entrypoint
73//System dlls set EntryPoint to 0
74//******************************************************************************
[978]75BOOL WIN32API RegisterLxExe(WINMAIN EntryPoint, PVOID pResData);
[7797]76
77
78//******************************************************************************
79//Create Dummy Exe object
80//******************************************************************************
81BOOL WIN32API RegisterDummyExe(LPSTR pszExeName);
82
[9730]83
[970]84#endif
Note: See TracBrowser for help on using the repository browser.