Last change
on this file since 10010 was 9411, checked in by sandervl, 23 years ago |
Added support for renaming of exported functions
|
File size:
1.2 KB
|
Line | |
---|
1 | /* $Id: windlllx.h,v 1.8 2002-11-18 13:53:54 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, *lpszCustomExportPrefix;
|
---|
50 | extern DWORD dwOrdinalBase;
|
---|
51 |
|
---|
52 | #endif //__WINDLLLX_H__
|
---|
Note:
See
TracBrowser
for help on using the repository browser.