Windows Media Player Incorrectly Recognizes a Visual C++ Program as an Internet Site (321671)



The information in this article applies to:

  • Microsoft Windows Media Player 7

This article was previously published under Q321671

SYMPTOMS

Windows Media Player may incorrectly recognize a Microsoft Visual C++ program that implements the playlistCollection object as an Internet site. When this occurs, an "ACCESS DENIED" error message in the player.playlistCollection.getAll function may be generated.

CAUSE

This problem may occur if "Access rights of Internet sites" is set to the No access option in Windows Media Player. To view this option, click Options on the Tools menu in Windows Media Player, and then click the Media Library tab.

RESOLUTION

To work around this problem:
  1. Determine the number of playlists that exist in the local Windows Media Player library. To do so, implement the playlistCollection object in Visual Basic.
  2. A Visual C++ program must host the Windows Media Player OCX by using ATL. The hosting container must implement IOleClientSite and call SetClientSite on the OCX. The hosting container must not implement IHTMLDocument. This means that the Query Interface for IID_IHTMLDocument must return E_FAIL.

STATUS

Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

Modification Type:MajorLast Reviewed:2/11/2004
Keywords:kbDSWMM2003Swept kbenv kberrmsg kbnofix kbprb KB321671