MediaQuery_t::CurrentItemOffset (Windows CE 5.0)
The CurrentItemOffset method has two behaviors, depending on the supplied parameter:
CurrentItemOffset() | Returns the current offset position |
CurrentItemOffset(int) | Sets the new offset position |
MediaQuery_t::CurrentItemOffset
Syntax
int CurrentItemOffset ( void );
Parameters
None.
Return Value
This method returns the current media item index.
MediaQuery_t::CurrentItemOffset
The CurrentItemOffset method sets new current media item offset.
Syntax
bool CurrentItemOffset (int AbsoluteIndex);
Parameters
- AbsoluteIndex
The new current index for the MediaQuery_t.
Return Value
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 GetLastError() value for more information about the cause behind the failure. |
Remarks
This method can be used to implement shuffle play by setting CurrentItemOffset randomly (within the allowable range).
Requirements
OS Versions: Windows CE 5.0 Networked Media Device Feature Pack.
Header: MediaQueryEngine.hpp.
Link Library: MQELib.lib.
See Also
Send Feedback on this topic to the authors