getConnectionInterface method
Retrieves the IID of the outgoing interface managed by this connection point.
Throws a WindowsException on failure.
To learn more, see learn.microsoft.com/windows/win32/api/ocidl/nf-ocidl-iconnectionpoint-getconnectioninterface.
Implementation
Pointer<GUID> getConnectionInterface() {
final pIID = adaptiveCalloc<GUID>();
final hr$ = HRESULT(_GetConnectionInterfaceFn(ptr, pIID));
if (hr$.isError) {
free(pIID);
throw WindowsException(hr$);
}
return pIID;
}