Click or drag to resize

InstrQueryResponse

Sends the query command for the current method to the device and reads the response.

virtual HRESULT InstrQueryResponse(long lTimeout, [, argument] ...);
Parameters
lTimeout

[in] I/O timeout value in milliseconds.

argument

[in] Optional arguments interpreted by the write and read format strings.

Return Value

Returns S_OK if successful, otherwise a failure HRESULT.

Example

The following example demonstrates use of the InstrQueryResponse function.

C++
// CoAcme4321.cpp
HRESULT Acme4321::Read(SAFEARRAY** ppsaData, double* pRange, double* pResolution)
{
  HRESULT hr = S_OK;

  hr = InstrQueryResponse(ppsaData, pRange, pResolution);

  return hr;
}
See Also

Other Resources

Download a complete CHM version of this documentation here.