chsvlib
chsv helper source code

◆ DEFINE_COM_QUERY_INTERFACE_ADD_ENTRY

#define DEFINE_COM_QUERY_INTERFACE_ADD_ENTRY (   iid_value,
  iface_type 
)    else if (refiid == iid_value) *ppv = static_cast<std::remove_pointer_t<iface_type>*> (this);

#include <chsvwinutil.h>

Defines a value of GUID, specified by iid_value, and a corresponding interface of type iface_type, to which the conversion, performed by the QueryInterface method, is to be supported.

The directive must be placed inside a definition of the QueryInterface method, i.e. either between DEFINE_COM_QUERY_INTERFACE_BEGIN and DEFINE_COM_QUERY_INTERFACE_END directives, or between DECLARE_AND_DEFINE_COM_QUERY_INTERFACE_BEGIN and DEFINE_COM_QUERY_INTERFACE_END directives.

For the example code see COM help directives.