Help Center
Help Center›AfxNova

AfxAxHostQueryServicefunction

UncategorisedfunctionCAxHost_IServiceProvider.incundocumented
Not documented upstream. This symbol was found in the AfxNova source but appears in no documentation topic. The signature below is read directly from the code; any description comes from the source comments.

Syntax

PRIVATE FUNCTION AfxAxHostQueryService ( BYVAL punk AS IUnknown PTR , BYVAL guidService AS REFGUID , BYVAL riid AS REFGUID , BYVAL ppvOut AS LPVOID PTR ) AS HRESULT

Parameters

NameDirectionDescription
punkinA pointer to the IUnknown instance of the COM object that supports the service.
guidServiceinThe service's unique identifier (SID).
riidinThe IID of the desired service interface.
ppvOutoutWhen this method returns, contains the interface pointer requested riid. If successful, the calling application is responsible for calling IUnknown::Release using this value when the service is no longer needed. In the case of failure, this value is NULL.

Return value

Returns S_OK if successful. Returns E_FAIL if the object does not support IServiceProvider. Otherwise, the function returns the HRESULT returned by the object's QueryService method. Remarks: If the object passed in the punk parameter supports the IServiceProvider interface, then its QueryService method is invoked, passing the guidService, riid, and ppvOut parameters and propagating the return value. Otherwise, the function returns E_FAIL. This function must be called by ordinal because it isn't exported by name in XP and below.

Reference

  • Include file CAxHost_IServiceProvider.inc
  • Defined in AfxNova/CAxHost_IServiceProvider.inc:39