source: trunk/include/odinlx.h@ 1420

Last change on this file since 1420 was 1420, checked in by sandervl, 26 years ago

several small changes

File size: 1.6 KB
Line 
1/* $Id: odinlx.h,v 1.4 1999-10-23 22:59:38 sandervl Exp $ */
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
16
17typedef ULONG (* WIN32API WIN32DLLENTRY)(ULONG hInstance, ULONG reason, LPVOID reserved);
18typedef int (* WIN32API WINMAIN)(HANDLE hInstance, HANDLE hPrevInstance, LPSTR lpCmdLine, int nShowCmd);
19
20//******************************************************************************
21//Create LX Dll object and send process attach message
22//System dlls set EntryPoint to 0
23//Returns: Odin32 module handle
24//******************************************************************************
25DWORD WIN32API RegisterLxDll(HINSTANCE hInstance, WIN32DLLENTRY EntryPoint, PVOID pResData);
26
27//******************************************************************************
28//Destroy LX Dll object
29//******************************************************************************
30BOOL WIN32API UnregisterLxDll(HINSTANCE hInstance);
31
32//******************************************************************************
33//Create LX Exe object and call entrypoint
34//System dlls set EntryPoint to 0
35//******************************************************************************
36BOOL WIN32API RegisterLxExe(WINMAIN EntryPoint, PVOID pResData);
37
38#ifdef __cplusplus
39extern "C" {
40#endif
41
42void OS2SetExceptionHandler(void *exceptframe);
43void OS2UnsetExceptionHandler(void *exceptframe);
44
45#ifdef __cplusplus
46}
47#endif
48
49#endif
Note: See TracBrowser for help on using the repository browser.