Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This function reads an integer from an IStream.

Syntax

STDAPI_(int)ReadInt(
  IStream* 
pIStream,
  HRESULT &
hr
);

Parameters

pIStream

Pointer to an IStreamfrom which the encoded integer is to be read.

hr

Reference to an HRESULTvalue (output).

Return Value

Returns the integer value (truncated to 32 bits), or zero if an error occurred.

Remarks

This function is a stripped-down subset of what sscanfcan do (without dragging in the C run time).

The ReadIntfunction can be used to read the value written by WriteInt.

Requirements

Windows Embedded CE Windows CE 3.0 and later
Windows Mobile Windows Mobile Version 5.0 and later
Note Microsoft DirectShow applications and DirectShow filters have different include file and Library requirements
For more information, see Setting Up the Build Environment

See Also