Creates or accesses the specified service and returns an interface pointer to the specified interface for the service.
HRESULT QueryService(
REFGUID guidService,
//Unique identifier for the requested service
REFIID riid, //Unique identifier for the requested interface
void** ppv //Address of output variable that receives the
//interface pointer requested in riid
);
The caller is responsible for releasing the interface pointer when it is no longer needed.
Because there is only one method in this interface, E_NOTIMPL is not a valid return code.
Windows NT: Use version 4.0 or later.
Windows: Use Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in ocidl.h.