IAppIntRsp::GetHResult

The GetHResult method returns an HRESULT indicating whether or not execution of the invoked command was successful.

HRESULT hResult = spIAppIntRsp->GetHResult();
Parameters
None.
Results
Returns an HRESULT indicating whether or not execution of the invoked command was successful.
Sample
The following is a fragment from the complete example for the standard IAppIntRsp interface.
   ...
   // Determine if the command failed, before accessing response component data
   HRESULT hResult = spIAppIntRsp->GetHResult();
   if (FAILED(hResult)) {
      ...
   } else {
      ...
   }
   ...