Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
Gray::cOSModuleFunc< TYPE > Class Template Reference

#include <cOSModule.h>

Public Member Functions

 cOSModuleFunc (TYPE pFunc=nullptr)
 
 ~cOSModuleFunc ()
 
void ClearFuncAddress ()
 
bool put_FuncAddress (TYPE pFunc)
 
bool put_FuncGeneric (FARPROC pFunc)
 
bool isValidFunc () const
 
 operator TYPE () const
 

Public Attributes

TYPE m_pFunc
 FARPROC to typedef int (FAR WINAPI *FARPROC)();. More...
 

Detailed Description

template<class TYPE = FARPROC>
class Gray::cOSModuleFunc< TYPE >

track a single entry point/procedure/function in the DLL/SO/Module file.

Note
It is VERY important to know the proper number and size of args before calling m_pFunc !!! (if not _cdecl)

Constructor & Destructor Documentation

◆ cOSModuleFunc()

template<class TYPE = FARPROC>
Gray::cOSModuleFunc< TYPE >::cOSModuleFunc ( TYPE  pFunc = nullptr)
inline

◆ ~cOSModuleFunc()

template<class TYPE = FARPROC>
Gray::cOSModuleFunc< TYPE >::~cOSModuleFunc ( )
inline

Member Function Documentation

◆ ClearFuncAddress()

template<class TYPE = FARPROC>
void Gray::cOSModuleFunc< TYPE >::ClearFuncAddress ( )
inline

◆ isValidFunc()

template<class TYPE = FARPROC>
bool Gray::cOSModuleFunc< TYPE >::isValidFunc ( ) const
inline

◆ operator TYPE()

template<class TYPE = FARPROC>
Gray::cOSModuleFunc< TYPE >::operator TYPE ( ) const
inline

◆ put_FuncAddress()

template<class TYPE = FARPROC>
bool Gray::cOSModuleFunc< TYPE >::put_FuncAddress ( TYPE  pFunc)
inline

◆ put_FuncGeneric()

template<class TYPE = FARPROC>
bool Gray::cOSModuleFunc< TYPE >::put_FuncGeneric ( FARPROC  pFunc)
inline

Member Data Documentation

◆ m_pFunc

template<class TYPE = FARPROC>
TYPE Gray::cOSModuleFunc< TYPE >::m_pFunc

FARPROC to typedef int (FAR WINAPI *FARPROC)();.


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