source: trunk/include/winexe.h@ 570

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

* empty log message *

File size: 1.1 KB
RevLine 
[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
20typedef ULONG (* WIN32API WIN32EXEENTRY)();
21
[506]22class Win32Exe;
23typedef Win32Exe *(* WIN32API WIN32CTOR)(char *);
24
[4]25class Win32Exe : public Win32Image
26{
27public:
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
40virtual ULONG start();
41
42protected:
43 char *cmdline;
44 BOOL fConsoleApp;
45
46 ULONG OS2InstanceHandle;
47
48private:
49};
50
51extern Win32Exe *WinExe;
52
53#endif
Note: See TracBrowser for help on using the repository browser.