Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This method passes the requested object interface pointer to the client.

Syntax

HRESULT OnObjectAvailable(
  REFIID 
riid,
  IUnknown* 
punk
);

Parameters

riid

[in] Interface identifier of the requested interface.

punk

[in] Address of the IUnknowninterface on the object requested in the call to IMoniker::BindToObject. The client should call AddRefon this pointer to maintain a reference to the object.

Return Value

Returns S_OK if this is successful or E_INVALIDARG if one or more parameters are invalid.

Remarks

This method is called in response to an IMoniker::BindToObjectoperation. The method is never called for IMoniker::BindToStorageoperations.

Requirements

Header urlmon.h, urlmon.idl
Library urlmon.lib
Windows Embedded CE Windows CE .NET 4.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also