ITasksRsp Interface

The ITasksRsp interface is used to interact with specific Tasks response parameters contained in the in-process COM Server Tasks response component, which is returned when the Tasks command is invoked.

Client applications may also interact with the Tasks response component via the IAppIntRsp interface. For more information about working with command and response components and their COM interfaces, see Command and Response components.

COM Class ID

coclass TasksRsp {
[default] interface ITasksRsp;
interface IAppIntRsp;
};

Reference

DLL FnAppIntTasksCmd.dll

Methods

The ITasksRsp interface does not define any public methods.

Example

The following is a fragment from the complete example for the Tasks command.

   ...
      // Obtain the response name and description from the standard response component
      _bstr_t bstrResponseDescription = spIAppIntRsp->GetDescription();
      std::cout << "ResponseDescription=" << ( bstrResponseDescription.length() ? (LPCSTR) bstrResponseDescription : _T( "" ) ) << std::endl;
      _bstr_t bstrResponseName = spIAppIntRsp->GetName();
      std::cout << "ResponseName=" << ( bstrResponseName.length() ? (LPCSTR) bstrResponseName : _T( "" ) ) << std::endl;

      // Obtain the custom TasksRsp component
      ITasksRspPtr spITasksRsp(spIAppIntRsp);
_ASSERTE(spITasksRsp != 0);
...