| Last change
 on this file since 2606 was             653, checked in by sandervl, 26 years ago | 
        
          | 
Stupid compiler; if you don't like virtual inline methods, then complain..
 | 
        
          | File size:
            929 bytes | 
      
      
| Rev | Line |  | 
|---|
| [653] | 1 | /* $Id: winexe.h,v 1.6 1999-08-23 18:06:45 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 | BOOL  isConsoleApp()                   { return fConsoleApp; }; | 
|---|
|  | 36 |  | 
|---|
|  | 37 | virtual ULONG start(); | 
|---|
| [651] | 38 |  | 
|---|
| [653] | 39 | virtual BOOL  isDll(); | 
|---|
| [4] | 40 |  | 
|---|
|  | 41 | protected: | 
|---|
|  | 42 | char *cmdline; | 
|---|
|  | 43 | BOOL  fConsoleApp; | 
|---|
|  | 44 |  | 
|---|
|  | 45 | private: | 
|---|
|  | 46 | }; | 
|---|
|  | 47 |  | 
|---|
|  | 48 | extern Win32Exe *WinExe; | 
|---|
|  | 49 |  | 
|---|
|  | 50 | #endif | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.