Share via


MediaQuery_t::CurrentItemOffset (Windows Embedded CE 6.0)

1/5/2010

The CurrentItemOffset method has two behaviors, depending on the supplied parameter:

CurrentItemOffset()

Returns the current offset position

CurrentItemOffset(int)

Sets the new offset position

Syntax

int CurrentItemOffset ( void );
bool CurrentItemOffset (int);

Parameters

None

Or

AbsoluteIndex: The new current index for the MediaQuery_t.

Return Value

This method returns the current media item index.

Or

This method returns a bool indicating success/failure of the operation. Possible values are:

Value

Description

TRUE

The current offset was changed as requested

FALSE

The offset is not changed. Check the GetLastError() value for more information about the cause behind the failure.

Comments

This method can be used to implement shuffle play by setting CurrentItemOffset randomly (within the allowable range).

Requirements

Header mediaqueryengine.hpp
Library MQELib.lib
Windows Embedded CE Windows CE 5.0 Networked Media Device Feature Pack and later

See Also

Reference

MediaQuery_t