![]() | InstrQueryResponse |
Sends the query command for the current method to the device and reads the response.
virtual HRESULT InstrQueryResponse(long lTimeout, [, argument] ...);
[in] I/O timeout value in milliseconds.
[in] Optional arguments interpreted by the write and read format strings.
Returns S_OK if successful, otherwise a failure HRESULT.
The following example demonstrates use of the InstrQueryResponse function.
// CoAcme4321.cpp HRESULT Acme4321::Read(SAFEARRAY** ppsaData, double* pRange, double* pResolution) { HRESULT hr = S_OK; hr = InstrQueryResponse(ppsaData, pRange, pResolution); return hr; }