source: trunk/src/kernel32/windlllx.h@ 10010

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
20class Win32LxDll : public Win32LxImage, public Win32DllBase
21{
22public:
23 Win32LxDll(HINSTANCE hInstance, WIN32DLLENTRY DllEntryPoint, PVOID pResData,
24 DWORD MajorImageVersion, DWORD MinorImageVersion,
25 DWORD Subsystem);
26virtual ~Win32LxDll();
27
28#ifdef DEBUG
29virtual ULONG AddRef(char *parentname = NULL);
30#else
31virtual ULONG AddRef();
32#endif
33virtual ULONG Release();
34
35 void setDllHandleOS2(HINSTANCE hInstanceOS2);
36
37virtual BOOL isPe2LxDll() const;
38virtual BOOL isLxDll() const;
39
40static Win32LxDll *findModuleByOS2Handle(HINSTANCE hinstance);
41
42protected:
43 DWORD MajorImageVersion;
44 DWORD MinorImageVersion;
45 DWORD Subsystem;
46private:
47};
48
49extern char *lpszCustomDllName, *lpszCustomExportPrefix;
50extern DWORD dwOrdinalBase;
51
52#endif //__WINDLLLX_H__
Note: See TracBrowser for help on using the repository browser.