MediaItem_t::GetItemAttribute (Windows CE 5.0)

Send Feedback

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

OS Versions: Windows CE 5.0 Networked Media Device Feature Pack.
Header: MediaQueryEngine.hpp.
Link Library: MQELib.lib.

See Also

MediaItem_t

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.