mirror of
https://github.com/Xevion/easy7zip.git
synced 2026-01-31 06:24:13 -06:00
15.05
This commit is contained in:
committed by
Kornel Lesiński
parent
0713a3ab80
commit
54490d51d5
+8
-2
@@ -13,17 +13,23 @@ namespace NDLL {
|
||||
#else
|
||||
#define My_GetProcAddress(module, procName) ::GetProcAddress(module, procName)
|
||||
#endif
|
||||
|
||||
|
||||
/* Win32: Don't call CLibrary::Free() and FreeLibrary() from another
|
||||
FreeLibrary() code: detaching code in DLL entry-point or in
|
||||
destructors of global objects in DLL module. */
|
||||
|
||||
class CLibrary
|
||||
{
|
||||
HMODULE _module;
|
||||
|
||||
// CLASS_NO_COPY(CLibrary);
|
||||
public:
|
||||
CLibrary(): _module(NULL) {};
|
||||
~CLibrary() { Free(); }
|
||||
|
||||
operator HMODULE() const { return _module; }
|
||||
HMODULE* operator&() { return &_module; }
|
||||
bool IsLoaded() const { return (_module != NULL); };
|
||||
bool IsLoaded() const { return (_module != NULL); }
|
||||
|
||||
void Attach(HMODULE m)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user