MediaItem_t::GetItemAttribute (Windows Embedded CE 6.0)

1/5/2010

Retrieves a specific attribute of the MediaItem_t.

Syntax

bool GetItemAttribute (
  ItemAttribute_e AttributeName, 
  WCHAR* pBuffer, 
  int* pBufferLength 
);

Parameters

  • AttributeName
    The attribute to retrieve.
  • pBuffer
    The buffer to return the item attribute string in.
  • pBufferLength
    The pointer to integer containing the buffer length. The buffer length is updated to return actual length of item attribute requested.

Return Value

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

Value Description

TRUE

The attribute is returned in the given buffer and the buffer length is updated.

FALSE

The requested attribute is not retrieved. Check GetLastError() value for more information about the cause behind the failure.

Remarks

You can ask for the buffer length for a specific attribute by calling GetItemAttribute with pBuffer equals NULL and a valid pBufferLength.

Requirements

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

See Also

Reference

MediaItem_t