Windows C++ Library
Classes | Namespaces | Functions
IFacePtr.hpp File Reference

The IFacePtr class declaration. More...

#include "IFaceTraits.hpp"
#include <unknwn.h>
#include <Core/BadLogicException.hpp>

Classes

class  WCL::IFacePtr< T >
 A smart-pointer type for use with COM interfaces. More...

Namespaces

namespace  WCL
 

The Windows C++ Library namespace.


Functions

template<typename T >
T ** WCL::AttachTo (IFacePtr< T > &ptr)
 Helper function to gain access to the internal member so that it can be passed as an output parameter, without overloading the & operator.
template<typename I >
HRESULT WCL::QueryInterface (IUnknown *object, I **iface)
 Query the object for a new interface.
template<typename O , typename I >
HRESULT WCL::QueryInterface (IFacePtr< O > &object, IFacePtr< I > &iface)
 Query the object for a new interface.

Detailed Description

The IFacePtr class declaration.

Author:
Chris Oldwood