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

#include <cOSProcessX.h>

Inheritance diagram for GrayLib::cOSModuleX:
Gray::cOSModule

Public Member Functions

 cOSModuleX (HANDLE hProcess=INVALID_HANDLE_VALUE, HMODULE hModule=HMODULE_NULL, bool bHaveRefCount=false)
 
void AttachModule (HANDLE hProcess, HMODULE hModule, bool bHaveRefCount)
 
- Public Member Functions inherited from Gray::cOSModule
 cOSModule (HMODULE hModule=((HMODULE) nullptr), UINT32 uFlags=k_Load_Normal)
 
 cOSModule (const FILECHAR_t *pszModuleName, UINT32 uFlags)
 
 ~cOSModule ()
 
FARPROC GetSymbolAddress (const char *pszSymbolName) const
 
bool isValidModule () const noexcept
 
 operator HMODULE () const noexcept
 
HMODULE get_ModuleHandle () const noexcept
 
UINT_PTR get_ModuleInt () const noexcept
 
bool isResourceModule () const noexcept
 
StrLen_t GetModulePath (FILECHAR_t *pszModuleName, StrLen_t nSizeMax) const
 
cStringF get_Name () const
 
HRESULT GetLastErrorDef (HRESULT hResDef=E_FAIL) const
 
void AttachModule (HMODULE hModule=((HMODULE) nullptr), UINT32 uFlags=k_Load_Normal)
 
void ClearModule () noexcept
 
HMODULE DetachModule () noexcept
 
void FreeThisModule ()
 
bool AttachModuleName (const FILECHAR_t *pszModuleName, UINT32 uFlags=k_Load_NoRefCount)
 
HRESULT LoadModule (const FILECHAR_t *pszModuleName, UINT32 uFlags=k_Load_Normal)
 
HRESULT LoadModuleWithSymbol (const FILECHAR_t *pszModuleName, const char *pszSymbolName)
 

Additional Inherited Members

- Static Public Member Functions inherited from Gray::cOSModule
static MIME_TYPE __stdcall CheckModuleTypeFile (const FILECHAR_t *pszPathName)
 
static HMODULE __stdcall GetModuleHandleForAddr (const void *pAddr)
 
- Static Public Attributes inherited from Gray::cOSModule
static const UINT k_Load_OSMask = 0x0FFFFFFF
 
static const UINT k_Load_ByName = 0x40000000
 try to find it (by just its file name, NOT Path) already loaded first. NOT OS flag. More...
 
static const UINT k_Load_NoRefCount = 0x80000000
 I DO NOT own the ref count. Don't free. NOT OS Flag. More...
 
- Protected Member Functions inherited from Gray::cOSModule
void FreeModuleLast ()
 

Detailed Description

A module loaded into an arbitrary process space. Maybe Other than mine! in _WIN32 HMODULE is just a load address in a particular space.

Constructor & Destructor Documentation

◆ cOSModuleX()

GrayLib::cOSModuleX::cOSModuleX ( HANDLE  hProcess = INVALID_HANDLE_VALUE,
HMODULE  hModule = HMODULE_NULL,
bool  bHaveRefCount = false 
)
inline

Member Function Documentation

◆ AttachModule()

void GrayLib::cOSModuleX::AttachModule ( HANDLE  hProcess,
HMODULE  hModule,
bool  bHaveRefCount 
)
inline

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