Click or drag to resize

VScanfNoPoll

Reads formatted input from a device.

virtual HRESULT VScanfNoPoll(const CString strFormat, va_list& argList, long lTimeout = CUR_TIMEOUT) abstract;	
Parameters
strFormat

[in] String describing the format for arguments. See the topic I/O Format Specifiers for Write Operations for details.

argList

[in] Argument list interpreted by the format string.

lTimeout

[in] I/O timeout in milliseconds.

Return Value

Returns S_OK if successful, otherwise a failure HRESULT.

Remarks

This function behaves identically to VScanf except that the device is not polled for errors after the data is read.

Example

The following example demonstrates use of the VScanfNoPoll function.

C++
// NtlIo.inl
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;
}
See Also

Download a complete CHM version of this documentation here.