| Last change
 on this file since 5224 was             5075, checked in by sandervl, 25 years ago | 
        
          | 
heap (shared+code) changes + lx dll unload workaround
 | 
        
          | File size:
            1.1 KB | 
      
      
| Line |  | 
|---|
| 1 | /* $Id: windlllx.h,v 1.3 2001-02-09 18:31:05 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 | class Win32LxDll : public Win32LxImage, public Win32DllBase | 
|---|
| 19 | { | 
|---|
| 20 | public: | 
|---|
| 21 | Win32LxDll(HINSTANCE hInstance, WIN32DLLENTRY DllEntryPoint, PVOID pResData, | 
|---|
| 22 | DWORD MajorImageVersion, DWORD MinorImageVersion, | 
|---|
| 23 | DWORD Subsystem); | 
|---|
| 24 | virtual ~Win32LxDll(); | 
|---|
| 25 |  | 
|---|
| 26 | #ifdef DEBUG | 
|---|
| 27 | virtual ULONG     AddRef(char *parentname = NULL); | 
|---|
| 28 | #else | 
|---|
| 29 | virtual ULONG     AddRef(); | 
|---|
| 30 | #endif | 
|---|
| 31 | virtual ULONG     Release(); | 
|---|
| 32 |  | 
|---|
| 33 | void      setDllHandleOS2(HINSTANCE hInstanceOS2); | 
|---|
| 34 |  | 
|---|
| 35 | virtual BOOL      isLxDll(); | 
|---|
| 36 |  | 
|---|
| 37 | static  Win32LxDll *findModuleByOS2Handle(HINSTANCE hinstance); | 
|---|
| 38 |  | 
|---|
| 39 | protected: | 
|---|
| 40 | DWORD     MajorImageVersion; | 
|---|
| 41 | DWORD     MinorImageVersion; | 
|---|
| 42 | DWORD     Subsystem; | 
|---|
| 43 | private: | 
|---|
| 44 | }; | 
|---|
| 45 |  | 
|---|
| 46 | #endif //__WINDLLLX_H__ | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.