Line | |
---|
1 | /* $Id: windlllx.h,v 1.1 2000-03-09 19:03:21 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 | virtual ~Win32LxDll();
|
---|
23 |
|
---|
24 | #ifdef DEBUG
|
---|
25 | virtual ULONG AddRef(char *parentname = NULL);
|
---|
26 | #else
|
---|
27 | virtual ULONG AddRef();
|
---|
28 | #endif
|
---|
29 | virtual ULONG Release();
|
---|
30 |
|
---|
31 | // Loaded by DosLoadModule (only relevant for LX dlls)
|
---|
32 | virtual void setLoadLibrary() { fLoadLibrary = TRUE; };
|
---|
33 |
|
---|
34 | // isLoaded returns TRUE when a dll has been loaded with DosLoadModule
|
---|
35 | virtual BOOL isLoaded() { return fLoadLibrary; };
|
---|
36 |
|
---|
37 | //Should only be called to make sure DosLoadModule is called at least
|
---|
38 | //once for a dll (to make sure OS/2 doesn't unload the dll when it's
|
---|
39 | //still needed)
|
---|
40 | virtual void loadLibrary();
|
---|
41 |
|
---|
42 | virtual BOOL isLxDll();
|
---|
43 |
|
---|
44 | protected:
|
---|
45 |
|
---|
46 | private:
|
---|
47 | };
|
---|
48 |
|
---|
49 | #endif //__WINDLLLX_H__
|
---|
Note:
See
TracBrowser
for help on using the repository browser.