Rev | Line | |
---|
[506] | 1 | /* $Id: winexe.h,v 1.3 1999-08-16 13:55:27 sandervl Exp $ */
|
---|
[4] | 2 |
|
---|
| 3 | /*
|
---|
| 4 | *
|
---|
| 5 | * Project Odin Software License can be found in LICENSE.TXT
|
---|
| 6 | *
|
---|
| 7 | */
|
---|
| 8 | /*
|
---|
| 9 | * Win32 PE Exe class
|
---|
| 10 | *
|
---|
| 11 | * Copyright 1998 Sander van Leeuwen (sandervl@xs4all.nl)
|
---|
| 12 | *
|
---|
| 13 | */
|
---|
| 14 | #ifndef __WINEXE_H__
|
---|
| 15 | #define __WINEXE_H__
|
---|
| 16 |
|
---|
| 17 | #include "winimage.h"
|
---|
| 18 | #include "windll.h"
|
---|
| 19 |
|
---|
| 20 | typedef ULONG (* WIN32API WIN32EXEENTRY)();
|
---|
| 21 |
|
---|
[506] | 22 | class Win32Exe;
|
---|
| 23 | typedef Win32Exe *(* WIN32API WIN32CTOR)(char *);
|
---|
| 24 |
|
---|
[4] | 25 | class Win32Exe : public Win32Image
|
---|
| 26 | {
|
---|
| 27 | public:
|
---|
| 28 | Win32Exe(HINSTANCE hinstance, int NameTableId, int Win32TableId);
|
---|
| 29 | Win32Exe(char *szFileName);
|
---|
| 30 | ~Win32Exe();
|
---|
| 31 |
|
---|
| 32 | void setCommandLine(char *cline) { cmdline = cline; };
|
---|
| 33 | char *getCommandLine() { return cmdline; };
|
---|
| 34 |
|
---|
| 35 | void setOS2InstanceHandle(ULONG handle) { OS2InstanceHandle = handle; };
|
---|
| 36 | ULONG getOS2InstanceHandle() { return OS2InstanceHandle; };
|
---|
| 37 |
|
---|
| 38 | BOOL isConsoleApp() { return fConsoleApp; };
|
---|
| 39 |
|
---|
| 40 | virtual ULONG start();
|
---|
| 41 |
|
---|
| 42 | protected:
|
---|
| 43 | char *cmdline;
|
---|
| 44 | BOOL fConsoleApp;
|
---|
| 45 |
|
---|
| 46 | ULONG OS2InstanceHandle;
|
---|
| 47 |
|
---|
| 48 | private:
|
---|
| 49 | };
|
---|
| 50 |
|
---|
| 51 | extern Win32Exe *WinExe;
|
---|
| 52 |
|
---|
| 53 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.