The QueryInterface method determines if an interface can be used with an object. Used by the following interfaces: IAVIEditStream, IAVIFile, IAVIStream, IAVIStreaming, and IGetFrame.
HRESULT QueryInterface(
LPUNKNOWN ps,
const IID & riid,
void *ppvObj
);
Returns a pointer to the current interface if successful or E_NOINTERFACE otherwise.
For handlers written in C++, QueryInterface has the following syntax:
HRESULT QueryInterface(const IID &riid, void *ppvObj);
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in unknwn.h.
Custom File and Stream Handlers Overview, Custom File and Stream Handler Interfaces, IAVIEditStream, IAVIFile, IAVIStream, IAVIStreaming, IGetFrame