Im getting an undocumented return code from a call to IUnknown::QueryInterface.
here is the code -
Code:
hr = CoCreateInstance(CLSID_FilterGraph , NULL , CLSCTX_ALL , IID_IGraphBuilder , (void**)&pGraphBuilder);
hr = pGraphBuilder->QueryInterface(IID_IMediaControl , (void**)pMediaControl);
switch(hr){
case S_OK:
break;
case E_NOINTERFACE:
case S_FALSE:
MessageBox(NULL , "Media Control Interface IID_IMediaControl not supported" , "DirectShow Failure" , MB_OK);
goto cleanup;
default:
MessageBox(NULL , "Some Unknown HRESULT returned" , "Unknown Result" , MB_OK);
goto cleanup;
}
Im getting the messagebox about unkown HRESULT returned. I checked the help file, and MSDN, these are the only values that they say can be returned.
P.S. I snipped out the error handler for the call to cocreateinstance, its returning S_OK;