IHlinkSite::QueryService

Allows querying of any service or other interface from the hyperlink site object. This is similar to IServiceProvider::QueryService.

HRESULT QueryService(

DWORD dwSiteData,

// Site data to identify the hyperlink its site

REFGUID guidService,

// TBD

REFIID riid,

// Location to return the riid interface

IUnknown* ppiunk

// Location to receive the unknown interface pointer of service query

);

Parameters

dwSiteData
[in] Identifies the hyperlink to the hyperlink site. The hyperlink site initializes the hyperlink with this value as part of IHlink::SetHlinkSite.
guidService
[in] TBD
riid
[in] Location to return the riid interface.
ppiunk
[iid_is, out] Location to return the IUnknown interface of the service query.

Return Values

S_OK
The hyperlink container interface was successfully retrieved.
E_NOINTERFACE
The desired interface is not available.

See Also

IHlinkSite::GetMoniker