ReactOS 0.4.15-dev-8236-g99f0937
ATL::CComCreator2< T1, T2 > Class Template Reference

#include <atlcom.h>

Static Public Member Functions

static HRESULT WINAPI CreateInstance (void *pv, REFIID riid, LPVOID *ppv)
 

Detailed Description

template<class T1, class T2>
class ATL::CComCreator2< T1, T2 >

Definition at line 460 of file atlcom.h.

Member Function Documentation

◆ CreateInstance()

template<class T1 , class T2 >
static HRESULT WINAPI ATL::CComCreator2< T1, T2 >::CreateInstance ( void pv,
REFIID  riid,
LPVOID ppv 
)
inlinestatic

Definition at line 463 of file atlcom.h.

464 {
465 ATLASSERT(ppv != NULL);
466
467 if (pv == NULL)
468 return T1::CreateInstance(NULL, riid, ppv);
469 else
470 return T2::CreateInstance(pv, riid, ppv);
471 }
#define ATLASSERT(x)
Definition: CComVariant.cpp:10
#define NULL
Definition: types.h:112
REFIID riid
Definition: atlbase.h:39
REFIID LPVOID * ppv
Definition: atlbase.h:39

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