If not, I do have to resort to using MultiCharToWideChar() function of the Windows SDK?
CODE
static_api_ptr_t<playlist_manager> plm;
bool bSuccess;
t_size activePlaylistIndex;
t_size playingItemIndex;
metadb_handle_ptr playingItemMetadbHandle;
activePlaylistIndex = plm->get_active_playlist();
if (activePlaylistIndex != infinite)
{
bSuccess = plm->get_playing_item_location(&activePlaylistIndex, &playingItemIndex);
if (bSuccess)
{
bSuccess = plm->playlist_get_item_handle(playingItemMetadbHandle, activePlaylistIndex, playingItemIndex);
if (bSuccess)
{
const char* filename = playingItemMetadbHandle->get_path();
if (filename != NULL && !strncmp(filename, "file://", 7))
{
console::info((filename + 7));
}
}
}
}