




 
A COM interface pointer to be queried.
The iid of a COM interface.
A boolean. The default is 
t
.
The function 
query-interface
 function invokes the COM method 
IUnknown::QueryInterface
 to attempt to obtain an interface pointer for the given 
iid
. The 
iid
 can be a symbol naming a COM interface or a 
refguid
 foreign pointer containing its iid.
If the 
IUnknown::QueryInterface
 returns successfully then the new interface pointer 
interface-for-iid
 is returned.
If 
errorp
 is 
nil
 then 
nil
 is returned if the interface pointer cannot be found, otherwise an error of type 
com-error
 is signalled.