Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
GrayLib::cOSModDyn Class Reference

#include <cOSModDyn.h>

Inheritance diagram for GrayLib::cOSModDyn:
Gray::cOSModImpl

Public Member Functions

 cOSModDyn (const char *pszModuleName) noexcept
 
virtual HRESULT RegisterModule (DWORD dwGrayLibVer, cOSModDyn **ppMod, IUnknown *pContainer)
 
virtual void UnRegisterModule ()
 
- Public Member Functions inherited from Gray::cOSModImpl
 cOSModImpl (const char *pszModuleName) noexcept
 
virtual ~cOSModImpl ()
 
bool IsLoaded () const noexcept
 
virtual bool OnProcessAttach ()
 
virtual void OnProcessDetach ()
 

Additional Inherited Members

- Public Attributes inherited from Gray::cOSModImpl
const char * m_pszModuleName
 Just derive this from the file name ? More...
 
HMODULE m_hModule
 My HMODULE assigned to me when loaded. should be same as GetModuleHandleForAddr(&g_Module) More...
 

Detailed Description

Dynamically load a DLL/SO into my process to support some functionality.

Constructor & Destructor Documentation

◆ cOSModDyn()

GrayLib::cOSModDyn::cOSModDyn ( const char *  pszModuleName)
inlinenoexcept

Member Function Documentation

◆ RegisterModule()

virtual HRESULT GrayLib::cOSModDyn::RegisterModule ( DWORD  dwGrayLibVer,
cOSModDyn **  ppMod,
IUnknown pContainer 
)
inlinevirtual

Register a dynamic loaded DLL. dwGrayLibVer = a high level version id _INC_GrayLibBase_H. NOT just _INC_GrayCore_H Expose this if i'm a DLL. The DLL has loaded and is aware of *Core etc. Make sure EXE and DLL/SO/Module agree on structures and packing.

◆ UnRegisterModule()

virtual void GrayLib::cOSModDyn::UnRegisterModule ( )
inlinevirtual

The documentation for this class was generated from the following file: