| 1 | /* $Id: odinlx.h,v 1.3 1999-09-18 17:45:22 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 | //******************************************************************************
 | 
|---|
| 24 | BOOL WIN32API RegisterLxDll(HINSTANCE hInstance, WIN32DLLENTRY EntryPoint, PVOID pResData);
 | 
|---|
| 25 | 
 | 
|---|
| 26 | //******************************************************************************
 | 
|---|
| 27 | //Destroy LX Dll object
 | 
|---|
| 28 | //******************************************************************************
 | 
|---|
| 29 | BOOL WIN32API UnregisterLxDll(HINSTANCE hInstance);
 | 
|---|
| 30 | 
 | 
|---|
| 31 | //******************************************************************************
 | 
|---|
| 32 | //Create LX Exe object and call entrypoint
 | 
|---|
| 33 | //System dlls set EntryPoint to 0
 | 
|---|
| 34 | //******************************************************************************
 | 
|---|
| 35 | BOOL WIN32API RegisterLxExe(WINMAIN EntryPoint, PVOID pResData);
 | 
|---|
| 36 | 
 | 
|---|
| 37 | #ifdef __cplusplus
 | 
|---|
| 38 | extern "C" {
 | 
|---|
| 39 | #endif
 | 
|---|
| 40 | 
 | 
|---|
| 41 | void  OS2SetExceptionHandler(void *exceptframe);
 | 
|---|
| 42 | void  OS2UnsetExceptionHandler(void *exceptframe);
 | 
|---|
| 43 | 
 | 
|---|
| 44 | #ifdef __cplusplus
 | 
|---|
| 45 | }
 | 
|---|
| 46 | #endif
 | 
|---|
| 47 | 
 | 
|---|
| 48 | #endif
 | 
|---|