| Last change
 on this file since 21776 was             21716, checked in by dmik, 14 years ago | 
        
          | 
Place local includes in quotes.
 
GCC doesn't search for <> includes in the current directory (intentionally).
 | 
        
          | File size:
            1.2 KB | 
      
      
| Line |  | 
|---|
| 1 | /* $Id: windlllx.h,v 1.9 2004-01-15 10:39:07 sandervl Exp $ */ | 
|---|
| 2 |  | 
|---|
| 3 | /* | 
|---|
| 4 | * Win32 LX Dll class (compiled in OS/2 using Odin32 api) | 
|---|
| 5 | * | 
|---|
| 6 | * Copyright 1999 Sander van Leeuwen (sandervl@xs4all.nl) | 
|---|
| 7 | * | 
|---|
| 8 | * | 
|---|
| 9 | * Project Odin Software License can be found in LICENSE.TXT | 
|---|
| 10 | * | 
|---|
| 11 | */ | 
|---|
| 12 | #ifndef __WINDLLLX_H__ | 
|---|
| 13 | #define __WINDLLLX_H__ | 
|---|
| 14 |  | 
|---|
| 15 | #include "windllbase.h" | 
|---|
| 16 | #include "winimagelx.h" | 
|---|
| 17 |  | 
|---|
| 18 | #define HACK_NEVER_UNLOAD_LX_DLLS | 
|---|
| 19 |  | 
|---|
| 20 | class Win32LxDll : public Win32LxImage, public Win32DllBase | 
|---|
| 21 | { | 
|---|
| 22 | public: | 
|---|
| 23 | Win32LxDll(HINSTANCE hInstance, WIN32DLLENTRY DllEntryPoint, PVOID pResData, | 
|---|
| 24 | DWORD MajorImageVersion, DWORD MinorImageVersion, | 
|---|
| 25 | DWORD Subsystem); | 
|---|
| 26 | virtual ~Win32LxDll(); | 
|---|
| 27 |  | 
|---|
| 28 | #ifdef DEBUG | 
|---|
| 29 | virtual ULONG     AddRef(char *parentname = NULL); | 
|---|
| 30 | #else | 
|---|
| 31 | virtual ULONG     AddRef(); | 
|---|
| 32 | #endif | 
|---|
| 33 | virtual ULONG     Release(); | 
|---|
| 34 |  | 
|---|
| 35 | void      setDllHandleOS2(HINSTANCE hInstanceOS2); | 
|---|
| 36 |  | 
|---|
| 37 | virtual BOOL      isPe2LxDll() const; | 
|---|
| 38 | virtual BOOL      isLxDll() const; | 
|---|
| 39 |  | 
|---|
| 40 | static  Win32LxDll *findModuleByOS2Handle(HINSTANCE hinstance); | 
|---|
| 41 |  | 
|---|
| 42 | protected: | 
|---|
| 43 | DWORD     MajorImageVersion; | 
|---|
| 44 | DWORD     MinorImageVersion; | 
|---|
| 45 | DWORD     Subsystem; | 
|---|
| 46 | private: | 
|---|
| 47 | }; | 
|---|
| 48 |  | 
|---|
| 49 | extern char *lpszCustomDllName; | 
|---|
| 50 | extern PIMAGE_FILE_HEADER lpCustomDllPEHdr; | 
|---|
| 51 |  | 
|---|
| 52 | #endif //__WINDLLLX_H__ | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.