IBindStatusCallback::OnObjectAvailable

An asynchronous moniker calls this method in response to an IMoniker::BindToObject bind operation to pass the requested object interface pointer to the client.

HRESULT OnObjectAvailable(
  REFIID  riid,  //Interface identifier of the requested interface
  IUnknown *punk //Pointer to the object requested in 
                 // IMoniker::BindToObject
);
 

Parameters

riid
[in] Interface identifier of the requested interface.
punk
[in] Pointer to the IUnknown interface on the object requested in the call to IMoniker::BindToObject. The client should call AddRef on this pointer to maintain a reference to the object.

Return Values

S_OK
The operation was successful.
E_INVALIDARG
One or more parameters are invalid.

Remarks

This method is never called for IMoniker::BindToStorage operations.

QuickInfo

  Windows NT: Use version 5.0 or later.
  Windows: Unsupported.
  Windows CE: Unsupported.
  Header: Declared in urlmon.h.

See Also

IBindStatusCallback::OnDataAvailable