Rev | Line | |
---|
[4] | 1 | /* $Id: winexe.h,v 1.1 1999-05-24 20:19:07 ktk Exp $ */
|
---|
| 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 |
|
---|
| 22 | class Win32Exe : public Win32Image
|
---|
| 23 | {
|
---|
| 24 | public:
|
---|
| 25 | Win32Exe(HINSTANCE hinstance, int NameTableId, int Win32TableId);
|
---|
| 26 | Win32Exe(char *szFileName);
|
---|
| 27 | ~Win32Exe();
|
---|
| 28 |
|
---|
| 29 | void setCommandLine(char *cline) { cmdline = cline; };
|
---|
| 30 | char *getCommandLine() { return cmdline; };
|
---|
| 31 |
|
---|
| 32 | void setOS2InstanceHandle(ULONG handle) { OS2InstanceHandle = handle; };
|
---|
| 33 | ULONG getOS2InstanceHandle() { return OS2InstanceHandle; };
|
---|
| 34 |
|
---|
| 35 | BOOL isConsoleApp() { return fConsoleApp; };
|
---|
| 36 |
|
---|
| 37 | virtual ULONG start();
|
---|
| 38 |
|
---|
| 39 | protected:
|
---|
| 40 | char *cmdline;
|
---|
| 41 | BOOL fConsoleApp;
|
---|
| 42 |
|
---|
| 43 | ULONG OS2InstanceHandle;
|
---|
| 44 |
|
---|
| 45 | private:
|
---|
| 46 | };
|
---|
| 47 |
|
---|
| 48 | extern Win32Exe *WinExe;
|
---|
| 49 |
|
---|
| 50 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.