Share via


IAsyncReader2::GetCurrentPosition (Compact 7)

3/12/2014

This method retrieves the position of the current sample in the media stream.

Syntax

HRESULT GetCurrentPosition(
  LONGLONG** lloffset
);

Parameters

  • lloffset
    [out] Pointer to the offset of the current sample from the start of the media stream. The offset is in bytes.

Return Value

Returns the HRESULT values shown in the following table.

Value Description

E_FAIL

The position was not set.

S_OK

The next position was returned.

Remarks

The offset can be based on time or position, depending on the properties of the allocator streamer. To retrieve the properties, call IAsyncReader2::GetCapabilities.

Requirements

Header

dshow.h

Library

Strmiids.lib

See Also

Reference

IAsyncReader2 Interface