[in] String describing the format for arguments. See the topic I/O Format Specifiers for Write Operations for details.
VScanfNoPoll
Reads formatted input from a device.
Syntax
Section titled “Syntax”virtual HRESULT VScanfNoPoll(const CString strFormat, va_list& argList, long lTimeout = CUR_TIMEOUT) abstract;Parameters
Section titled “Parameters”strFormat
argList
[in] Argument list interpreted by the format string.
lTimeout
[in] I/O timeout in milliseconds.
Return value
Section titled “Return value”Returns S_OK if successful, otherwise a failure HRESULT.
Remarks
Section titled “Remarks”This function behaves identically to VScanf except that the device is not polled for errors after the data is read.
Example
Section titled “Example”The following example demonstrates use of the VScanfNoPoll function.
inline HRESULT CIoSession::QueryfNoPoll(const CString strWriteFormat, const CString strReadFormat, ...){ HRESULT hr = S_OK;
va_list argList; va_start(argList, strReadFormat);
hr = VQueryf(strWriteFormat, strReadFormat, argList);
va_end(argList);
return hr;}