| 
            Last change
 on this file since 1546 was             953, checked in by sandervl, 26 years ago           | 
        
        
          | 
             
New headers for kernel32 win32 image classes + removed old ones + nameid.h 
 
           | 
        
        
          | 
            File size:
            863 bytes
           | 
        
      
      
| Line |   | 
|---|
| 1 | /* $Id: winexebase.h,v 1.1 1999-09-15 23:29:37 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)();
 | 
|---|
| 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)      { cmdline = cline; };
 | 
|---|
| 27 |         char *getCommandLine()                 { return cmdline;  };
 | 
|---|
| 28 | 
 | 
|---|
| 29 |         BOOL  isConsoleApp()                   { return fConsoleApp; };
 | 
|---|
| 30 | 
 | 
|---|
| 31 | virtual ULONG start();
 | 
|---|
| 32 | 
 | 
|---|
| 33 | virtual BOOL  isDll();
 | 
|---|
| 34 |         
 | 
|---|
| 35 | protected:
 | 
|---|
| 36 |         char *cmdline;
 | 
|---|
| 37 |         BOOL  fConsoleApp;
 | 
|---|
| 38 | 
 | 
|---|
| 39 | private:
 | 
|---|
| 40 | };
 | 
|---|
| 41 | 
 | 
|---|
| 42 | extern Win32ExeBase *WinExe;
 | 
|---|
| 43 | 
 | 
|---|
| 44 | #endif //__WINEXEBASE_H__
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.