The GetHResult method returns an HRESULT indicating whether or not execution of the invoked command was successful.
HRESULT hResult = spIAppIntRsp->GetHResult();
...
// Determine if the command failed, before accessing response component data
HRESULT hResult = spIAppIntRsp->GetHResult();
if (FAILED(hResult)) {
...
} else {
...
}
...