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 is to be implemented by a service and will be called by Services.exe. This function need only be implemented by a streaming service.

Syntax

DWORD xxx_Seek(
  DWORD 
dwData,
  long 
pos,
  DWORD 
type
);

Parameters

dwData

[in] Specifies the value returned by xxx_Open (Services.exe)for the given service instance.

pos

[in] Specifies the number of bytes to move the file pointer. posis a 32-bit signed value. A positive value for this parameter moves the file pointer forward in the file while a negative value moves the file pointer backward.

type

[in] Specifies the starting point for the file pointer move. The following table shows possible values.

Value Description

FILE_BEGIN

The starting point is zero, or at the beginning of the file.

FILE_CURRENT

The starting point is the current value of the file pointer.

FILE_END

The starting point is the current end-of-file position.

Return Value

Returns the current location of the file pointer.

Remarks

This function is called by Services.exe as a result of an application's call to SetFilePointer.

Services.exe uses the xxxprefix. When implementing the stream interface, replace xxxwith a prefix appropriate for your specific implementation.

Requirements

Header Developer Implemented
Library Developer Implemented
Windows Embedded CE Windows CE .NET 4.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also