Rev | Line | |
---|
[10397] | 1 | /* $Id: windlllx.h,v 1.9 2004-01-15 10:39:07 sandervl Exp $ */
|
---|
[3059] | 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 |
|
---|
[21916] | 15 | #include "windllbase.h"
|
---|
| 16 | #include "winimagelx.h"
|
---|
[3059] | 17 |
|
---|
[8462] | 18 | #define HACK_NEVER_UNLOAD_LX_DLLS
|
---|
| 19 |
|
---|
[3059] | 20 | class Win32LxDll : public Win32LxImage, public Win32DllBase
|
---|
| 21 | {
|
---|
| 22 | public:
|
---|
[6015] | 23 | Win32LxDll(HINSTANCE hInstance, WIN32DLLENTRY DllEntryPoint, PVOID pResData,
|
---|
[3993] | 24 | DWORD MajorImageVersion, DWORD MinorImageVersion,
|
---|
| 25 | DWORD Subsystem);
|
---|
[3059] | 26 | virtual ~Win32LxDll();
|
---|
| 27 |
|
---|
| 28 | #ifdef DEBUG
|
---|
[6015] | 29 | virtual ULONG AddRef(char *parentname = NULL);
|
---|
[3059] | 30 | #else
|
---|
| 31 | virtual ULONG AddRef();
|
---|
| 32 | #endif
|
---|
[6015] | 33 | virtual ULONG Release();
|
---|
[3059] | 34 |
|
---|
[3993] | 35 | void setDllHandleOS2(HINSTANCE hInstanceOS2);
|
---|
[3059] | 36 |
|
---|
[6015] | 37 | virtual BOOL isPe2LxDll() const;
|
---|
| 38 | virtual BOOL isLxDll() const;
|
---|
[3059] | 39 |
|
---|
[3993] | 40 | static Win32LxDll *findModuleByOS2Handle(HINSTANCE hinstance);
|
---|
[6015] | 41 |
|
---|
[3059] | 42 | protected:
|
---|
[5075] | 43 | DWORD MajorImageVersion;
|
---|
| 44 | DWORD MinorImageVersion;
|
---|
| 45 | DWORD Subsystem;
|
---|
[3059] | 46 | private:
|
---|
| 47 | };
|
---|
| 48 |
|
---|
[10397] | 49 | extern char *lpszCustomDllName;
|
---|
| 50 | extern PIMAGE_FILE_HEADER lpCustomDllPEHdr;
|
---|
[6412] | 51 |
|
---|
[3059] | 52 | #endif //__WINDLLLX_H__
|
---|
Note:
See
TracBrowser
for help on using the repository browser.