Share via


IInternetProtocol::Seek (Windows Embedded CE 6.0)

1/6/2010

This method moves the current seek offset.

Syntax

HRESULT Seek(
  LARGE_INTEGER dlibMove,
  DWORD dwOrigin, 
  ULARGE_INTEGER* plibNewPosition
);

Parameters

  • dlibMove
    [in] Large integer value that indicates how far to move the offset.
  • dwOrigin
    [in] DWORD value that indicates where the move should begin.

    Value Description

    FILE_BEGIN

    Starting point is zero or the beginning of the file. If FILE_BEGIN is specified, dlibMove is interpreted as an unsigned location for the new file pointer.

    FILE_CURRENT

    Current value of the file pointer is the starting point.

    FILE_END

    Current end-of-file position is the starting point. This method fails if the content length is unknown.

  • plibNewPosition
    [out] Address of an unsigned long integer value that indicates the new offset.

Return Value

Returns S_OK if successful or E_FAIL if the protocol does not support seekable data retrieval.

Requirements

Header urlmon.h, urlmon.idl
Library urlmon.lib
Windows Embedded CE Windows CE .NET 4.0 and later

See Also

Reference

IInternetProtocol