ReactOS 0.4.16-dev-319-g6cf4263
ATL::CAtlBaseModule Class Reference

#include <atlcore.h>

Inheritance diagram for ATL::CAtlBaseModule:
Collaboration diagram for ATL::CAtlBaseModule:

Public Member Functions

 CAtlBaseModule ()
 
HINSTANCE GetModuleInstance ()
 
HINSTANCE GetResourceInstance ()
 
HINSTANCE SetResourceInstance (HINSTANCE hInst)
 
HINSTANCE GetHInstanceAt (int i)
 

Static Public Attributes

static bool m_bInitFailed
 

Additional Inherited Members

- Public Attributes inherited from ATL::_ATL_BASE_MODULE70
UINT cbSize
 
HINSTANCE m_hInst
 
HINSTANCE m_hInstResource
 
bool m_bNT5orWin98
 
DWORD dwAtlBuildVer
 
GUIDpguidVer
 
CRITICAL_SECTION m_csResource
 

Detailed Description

Definition at line 190 of file atlcore.h.

Constructor & Destructor Documentation

◆ CAtlBaseModule()

ATL::CAtlBaseModule::CAtlBaseModule ( )
inline

Definition at line 195 of file atlcore.h.

196 {
197 cbSize = sizeof(_ATL_BASE_MODULE);
198 GetModuleHandleExW(GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS, (LPCWSTR)this, &m_hInst);
200 }
BOOL WINAPI GetModuleHandleExW(IN DWORD dwFlags, IN LPCWSTR lpwModuleName OPTIONAL, OUT HMODULE *phModule)
Definition: loader.c:866
_ATL_BASE_MODULE70 _ATL_BASE_MODULE
Definition: atlcore.h:188
HINSTANCE m_hInstResource
Definition: atlcore.h:179
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185

Member Function Documentation

◆ GetHInstanceAt()

HINSTANCE ATL::CAtlBaseModule::GetHInstanceAt ( int  i)

◆ GetModuleInstance()

HINSTANCE ATL::CAtlBaseModule::GetModuleInstance ( )
inline

Definition at line 202 of file atlcore.h.

203 {
204 return m_hInst;
205 }

◆ GetResourceInstance()

HINSTANCE ATL::CAtlBaseModule::GetResourceInstance ( )
inline

Definition at line 207 of file atlcore.h.

208 {
209 return m_hInstResource;
210 }

◆ SetResourceInstance()

HINSTANCE ATL::CAtlBaseModule::SetResourceInstance ( HINSTANCE  hInst)
inline

Definition at line 212 of file atlcore.h.

213 {
214 return static_cast< HINSTANCE >(InterlockedExchangePointer((void**)&m_hInstResource, hInst));
215 }
#define InterlockedExchangePointer(Target, Value)
Definition: dshow.h:45
HINSTANCE hInst
Definition: dxdiag.c:13

Member Data Documentation

◆ m_bInitFailed

bool ATL::CAtlBaseModule::m_bInitFailed
static

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