次の方法で共有


ReadInt (Compact 2013)

3/26/2014

This function reads an integer from an IStream.

Syntax

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 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 sscanf can do (without dragging in the C run time).

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

Requirements

Header

dshow.h

Library

Strmiids.lib

See Also

Reference

Stream Integer Functions