Obtaining Unified Communications Client API Interface Pointers
This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.
There are three ways by which a Win32/C++ application can obtain a COM interface pointer before calling its members. These involve calling a co-creatable co-class, calling QueryInterface of the IUnknown interface, or using a factory object or method.
- Obtain an Interface Pointer Through a Co-creatable Co-class
Describes the C++ programming patterns of obtaining the default interface pointer from a co-creatable co-class using CoCreateInstance, a function exposed by the COM library.
- Call QueryInterface on an Existing Interface Pointer
Describes the C++ programming patterns of navigating to an interface pointer from an existing interface pointer.
- Use a Factory Object to Obtain an Interface Pointer
Describes the C++ programming patterns of obtaining an interface pointer using the factory object or method exposed by Unified Communications Client API.