ReactOS  0.4.12-dev-18-gf469aca
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 = false
 

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 186 of file atlcore.h.

Constructor & Destructor Documentation

◆ CAtlBaseModule()

ATL::CAtlBaseModule::CAtlBaseModule ( )
inline

Definition at line 191 of file atlcore.h.

192  {
193  cbSize = sizeof(_ATL_BASE_MODULE);
194  GetModuleHandleExW(GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS, (LPCWSTR)this, &m_hInst);
196  }
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
BOOL WINAPI GetModuleHandleExW(IN DWORD dwFlags, IN LPCWSTR lpwModuleName OPTIONAL, OUT HMODULE *phModule)
Definition: loader.c:873
_ATL_BASE_MODULE70 _ATL_BASE_MODULE
Definition: atlcore.h:184
HINSTANCE m_hInstResource
Definition: atlcore.h:175

Member Function Documentation

◆ GetHInstanceAt()

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

◆ GetModuleInstance()

◆ GetResourceInstance()

◆ SetResourceInstance()

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

Definition at line 208 of file atlcore.h.

209  {
210  return static_cast< HINSTANCE >(InterlockedExchangePointer((void**)&m_hInstResource, hInst));
211  }
#define InterlockedExchangePointer(Target, Value)
Definition: dshow.h:45
HINSTANCE m_hInstResource
Definition: atlcore.h:175

Member Data Documentation

◆ m_bInitFailed

bool ATL::CAtlBaseModule::m_bInitFailed = false
static

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