Rogue Wave Views
Foundation Package API Reference Guide
Product Documentation:

Rogue Wave Views
Documentation Home
List of all members | Public Member Functions
IlvCOMInterfaceFromCLSID< INTERFACE > Class Template Reference

This class queries for a specific interface from an CLSID. More...

#include <ilviews/windows/com.h>

Inheritance diagram for IlvCOMInterfaceFromCLSID< INTERFACE >:
IlvAbstractCOMInterface< INTERFACE >

Public Member Functions

 IlvCOMInterfaceFromCLSID (REFCLSID clsID, REFIID rIID, DWORD dwClsContext=CLSCTX_INPROC_SERVER)
 Constructor. More...
 
virtual ~IlvCOMInterfaceFromCLSID ()
 The destructor. More...
 
- Public Member Functions inherited from IlvAbstractCOMInterface< INTERFACE >
virtual ~IlvAbstractCOMInterface ()=0
 Destructor. More...
 
INTERFACE * getInterface () const
 This member function returns the interface associated to this class. More...
 
 operator INTERFACE * () const
 This operator returns the interface associated to this class. More...
 
 operator INTERFACE const * () const
 This const operator returns the interface associated to this class. More...
 
INTERFACE * operator-> () const
 This operator lets the class to be used as a plain pointer. More...
 
HRESULT setInterface (IUnknown *iunk, REFIID iid)
 This function modifies the interface stored by this object through a call to the function QueryInterface of the IUnknown interface. More...
 
void setInterface (INTERFACE *interf)
 This function replaces the previous interface stored in this object by a new one. More...
 

Additional Inherited Members

- Protected Member Functions inherited from IlvAbstractCOMInterface< INTERFACE >
 IlvAbstractCOMInterface ()
 Default constructor. More...
 
 IlvAbstractCOMInterface (IlvAbstractCOMInterface const &other)
 Copy constructor. More...
 
 IlvAbstractCOMInterface (CntPtr const &initObj)
 Constructor. More...
 
CntPtr const & getInitializer () const
 This function returns a reference counter to the library initializer. More...
 
IlvAbstractCOMInterfaceoperator= (IlvAbstractCOMInterface const &other)
 Assignment operator. More...
 

Detailed Description

template<class INTERFACE>
class IlvCOMInterfaceFromCLSID< INTERFACE >

This class queries for a specific interface from an CLSID.

Library: ilvcom

Constructor & Destructor Documentation

template<class INTERFACE >
IlvCOMInterfaceFromCLSID< INTERFACE >::IlvCOMInterfaceFromCLSID ( REFCLSID  clsID,
REFIID  rIID,
DWORD  dwClsContext = CLSCTX_INPROC_SERVER 
)

Constructor.

It builds an object from a REFCLSID and a REFIID. The last parameter lets to specify the context for running executable code.

Parameters
clsIDA REFCLSID.
rIIDA REFIID.
dwClsContextA DWORD. The default value is CLSCTX_INPROC_SERVER. See the documentation of the Windows API function CoCreateInstance for more information (third parameter).
See also
IlvCOMInterfaceFromCLSID::~IlvCOMInterfaceFromCLSID.
template<class INTERFACE >
IlvCOMInterfaceFromCLSID< INTERFACE >::~IlvCOMInterfaceFromCLSID ( )
virtual

The destructor.

It releases the resources used by the object.

See also
IlvCOMInterfaceFromCLSID::IlvCOMInterfaceFromCLSID.

© Copyright 2016, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.