| 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 |  | 
|---|
| 17 | typedef ULONG (* WIN32API WIN32DLLENTRY)(ULONG hInstance, ULONG reason, LPVOID reserved); | 
|---|
| 18 | typedef 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 | //****************************************************************************** | 
|---|
| 25 | DWORD WIN32API RegisterLxDll(HINSTANCE hInstance, WIN32DLLENTRY EntryPoint, PVOID pResData); | 
|---|
| 26 |  | 
|---|
| 27 | //****************************************************************************** | 
|---|
| 28 | //Destroy LX Dll object | 
|---|
| 29 | //****************************************************************************** | 
|---|
| 30 | BOOL WIN32API UnregisterLxDll(HINSTANCE hInstance); | 
|---|
| 31 |  | 
|---|
| 32 | //****************************************************************************** | 
|---|
| 33 | //Create LX Exe object and call entrypoint | 
|---|
| 34 | //System dlls set EntryPoint to 0 | 
|---|
| 35 | //****************************************************************************** | 
|---|
| 36 | BOOL WIN32API RegisterLxExe(WINMAIN EntryPoint, PVOID pResData); | 
|---|
| 37 |  | 
|---|
| 38 | #ifdef __cplusplus | 
|---|
| 39 | extern "C" { | 
|---|
| 40 | #endif | 
|---|
| 41 |  | 
|---|
| 42 | void  OS2SetExceptionHandler(void *exceptframe); | 
|---|
| 43 | void  OS2UnsetExceptionHandler(void *exceptframe); | 
|---|
| 44 |  | 
|---|
| 45 | #ifdef __cplusplus | 
|---|
| 46 | } | 
|---|
| 47 | #endif | 
|---|
| 48 |  | 
|---|
| 49 | #endif | 
|---|