ReadInt

Reads an integer from an IStream.

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

Parameters

  • pIStream
    Pointer to an IStream from which the encoded integer is to be read.
  • hr
    Reference to an HRESULT value (output).

Return Values

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

Remarks

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

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

 Last updated on Tuesday, July 13, 2004

© 1992-2000 Microsoft Corporation. All rights reserved.