| Line |  | 
|---|
| 1 | /* $Id: winexebase.h,v 1.3 2000-01-06 20:03:04 sandervl Exp $ */ | 
|---|
| 2 |  | 
|---|
| 3 | /* | 
|---|
| 4 | * Win32 PE Exe base class | 
|---|
| 5 | * | 
|---|
| 6 | * Copyright 1998-1999 Sander van Leeuwen (sandervl@xs4all.nl) | 
|---|
| 7 | * | 
|---|
| 8 | * | 
|---|
| 9 | * Project Odin Software License can be found in LICENSE.TXT | 
|---|
| 10 | * | 
|---|
| 11 | */ | 
|---|
| 12 | #ifndef __WINEXEBASE_H__ | 
|---|
| 13 | #define __WINEXEBASE_H__ | 
|---|
| 14 |  | 
|---|
| 15 | #include <winimagebase.h> | 
|---|
| 16 |  | 
|---|
| 17 | typedef ULONG (* WIN32API WIN32EXEENTRY)(LPVOID); | 
|---|
| 18 |  | 
|---|
| 19 | //Base executable class | 
|---|
| 20 | class Win32ExeBase : public virtual Win32ImageBase | 
|---|
| 21 | { | 
|---|
| 22 | public: | 
|---|
| 23 | Win32ExeBase(HINSTANCE hInstance); | 
|---|
| 24 | virtual ~Win32ExeBase(); | 
|---|
| 25 |  | 
|---|
| 26 | void   setCommandLine(char *cline); | 
|---|
| 27 | LPSTR  getCommandLineA()                { return cmdLineA;  }; | 
|---|
| 28 | LPWSTR getCommandLineW()                { return cmdLineW;  }; | 
|---|
| 29 |  | 
|---|
| 30 | BOOL  isConsoleApp()                   { return fConsoleApp; }; | 
|---|
| 31 |  | 
|---|
| 32 | virtual ULONG start(); | 
|---|
| 33 |  | 
|---|
| 34 | virtual BOOL  isDll(); | 
|---|
| 35 |  | 
|---|
| 36 | protected: | 
|---|
| 37 | LPSTR  cmdLineA; | 
|---|
| 38 | LPWSTR cmdLineW; | 
|---|
| 39 | BOOL   fConsoleApp; | 
|---|
| 40 |  | 
|---|
| 41 | private: | 
|---|
| 42 | }; | 
|---|
| 43 |  | 
|---|
| 44 | extern Win32ExeBase *WinExe; | 
|---|
| 45 |  | 
|---|
| 46 | #endif //__WINEXEBASE_H__ | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.